1.

__________ method creates a mock object that implements the given interface, order checking is enabled by default.(a) createNiceControl(b) createMockBuilder(c) createNiceMock(d) createStrictMockThis question was addressed to me in an internship interview.Origin of the question is Ant topic in chapter Running JUnit Tests from Ant of JUnit

Answer»

The correct CHOICE is (d) CREATESTRICTMOCK

The best EXPLANATION: createStrictMock is the old version of strictMock(String, Class), which is more COMPLETION friendly.



Discussion

No Comment Found

Related InterviewSolutions