1.

Stubs don’t lend themselves well to ____________ unit testing.(a) Fine-grained(b) Coarse-grained(c) Redundant(d) FunctionalThe question was posed to me during an online interview.My question comes from The Mock Objects Solution topic in chapter In-container Testing of JUnit

Answer»

Correct OPTION is (a) Fine-grained

To explain I would say: In GENERAL, stubs are BETTER adapted for replacing coarse-grained PORTIONS of code.



Discussion

No Comment Found

Related InterviewSolutions