Home
last modified time | relevance | path

Searched refs:LockingAnswer (Results 1 – 1 of 1) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/bugs/
DShouldNotDeadlockAnswerExecutionTest.java30 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 ShouldNotDeadlockAnswerExecutionTest
78 public LockingAnswer(AtomicInteger counter) { in LockingAnswer() method in ShouldNotDeadlockAnswerExecutionTest.LockingAnswer