1.

_____________ function expect the last invocation any times.(a) andStubReturn(T value)(b) andThrow(Throwable throwable)(c) anyTimes()(d) asStub()I have been asked this question during an online exam.I want to ask this question from Putting Ant to The Task in division Running JUnit Tests from Ant of JUnit

Answer»

Right ANSWER is (c) anyTimes()

The explanation is: anyTimes() returns IEXPECTATIONSETTERS OBJECT to allow METHOD call chaining.



Discussion

No Comment Found

Related InterviewSolutions