1.

_____________ records a call but returns nothing.(a) andVoid()(b) times(int min, int max)(c) once()(d) asStub()I have been asked this question in an internship interview.My enquiry is from Putting Ant to The Task in section Running JUnit Tests from Ant of JUnit

Answer»

Right OPTION is (a) andVoid()

To elaborate: andVoid() is USED to CHAIN calls on void methods expectLastCall(), andThrow(E), andVoid().



Discussion

No Comment Found

Related InterviewSolutions