1.

The most important point to consider when writing a mock is that it shouldn’t have any __________.(a) Redundancy(b) Abstraction(c) Matchers(d) Business LogicThis question was posed to me in homework.My enquiry is from Comparing Stubs, Mock Objects and In-container Testing topic in portion In-container Testing of JUnit

Answer»

The correct option is (d) BUSINESS Logic

To EXPLAIN: Mocks must be a DUMB object that does only what the test TELLS it to do.



Discussion

No Comment Found

Related InterviewSolutions