816817818819820821822
* @param answer to answer when the stubbed method is called * @return stubber - to select a method for stubbing */ public static Stubber doAnswer(Answer answer) { MOCKING_PROGRESS.stubbingStarted(); return new StubberImpl().doAnswer(answer); }
767768769770771772773
117118119120121122123
} public Stubber doAnswer(Answer answer) { mockingProgress.stubbingStarted(); mockingProgress.resetOngoingStubbing(); return new StubberImpl().doAnswer(answer); }
128129130131132133134
130131132133134135136
137138139140141142143
145146147148149150151
127128129130131132133
947948949950951952953
* @return stubber - to select a method for stubbing */ public static Stubber doAnswer(Answer answer) { MOCKING_PROGRESS.stubbingStarted(); MOCKING_PROGRESS.resetOngoingStubbing(); return new StubberImpl().doAnswer(answer); }
111112113114115116117