Searched refs:LockingAnswer (Results 1 – 1 of 1) sorted by relevance
30 Mockito.when(service.verySlowMethod()).thenAnswer(new LockingAnswer(counter)); in failIfMockIsSharedBetweenThreads()56 Mockito.when(service1.verySlowMethod()).thenAnswer(new LockingAnswer(counter)); in successIfEveryThreadHasItsOwnMock()57 Mockito.when(service2.verySlowMethod()).thenAnswer(new LockingAnswer(counter)); in successIfEveryThreadHasItsOwnMock()74 static class LockingAnswer implements Answer<String> { class in ShouldNotDeadlockAnswerExecutionTest78 public LockingAnswer(AtomicInteger counter) { in LockingAnswer() method in ShouldNotDeadlockAnswerExecutionTest.LockingAnswer