1.

Mocks are Trojan horses because they replace real ___________ from the inside, without the calling classes being aware of it.(a) Methods(b) Objects(c) Variables(d) ClassesThis question was posed to me in exam.This interesting question is from Ant in section Running JUnit Tests from Ant of JUnit

Answer»

The correct CHOICE is (b) Objects

To ELABORATE: Mocks have access to internal INFORMATION about the class, making them QUITE powerful.



Discussion

No Comment Found

Related InterviewSolutions