1.

When we’re talking about mock objects, a/an _________ is a feature built into the mock that verifies whether the external class calling this mock has the correct behavior.(a) Expectation(b) Explanation(c) Behavior(d) AmorousThe question was asked during an online interview.I'm obligated to ask this question of Ant in section Running JUnit Tests from Ant of JUnit

Answer»

The correct OPTION is (a) Expectation

Easy explanation: For example, a database connection MOCK could VERIFY that the close method on the connection is called exactly once during any test that involves code using this mock.



Discussion

No Comment Found

Related InterviewSolutions