Searched refs:invocationListeners (Results 1 – 8 of 8) sorted by relevance
/external/mockito/src/test/java/org/mockito/internal/creation/ |
D | MockSettingsImplTest.java | 118 mockSettingsImpl.invocationListeners((InvocationListener[])null); in shouldNotAllowNullListener() 128 mockSettingsImpl.invocationListeners(invocationListener); in shouldAddInvocationListener() 141 …mockSettingsImpl.invocationListeners(invocationListener, invocationListener).invocationListeners(i… in canAddDuplicateInvocationListeners_ItsNotOurBusinessThere() 150 mockSettingsImpl.invocationListeners(); in shouldReportErrorWhenAddingNoInvocationListeners() 160 mockSettingsImpl.invocationListeners(invocationListener, null); in shouldReportErrorWhenAddingANullInvocationListener()
|
/external/mockito/src/main/java/org/mockito/internal/handler/ |
D | InvocationNotifierHandler.java | 25 private final List<InvocationListener> invocationListeners; field in InvocationNotifierHandler 30 this.invocationListeners = settings.getInvocationListeners(); in InvocationNotifierHandler() 46 for (InvocationListener listener : invocationListeners) { in notifyMethodCall() 56 for (InvocationListener listener : invocationListeners) { in notifyMethodCallException()
|
/external/mockito/src/test/java/org/mockitousage/debugging/ |
D | InvocationListenerCallbackTest.java | 38 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener)); in should_call_single_listener_when_mock_return_normally() 55 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2)); in should_call_listeners_in_order() 70 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener1)); in should_allow_same_listener() 85 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2)); in should_call_all_listener_when_mock_return_normally() 101 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2)); in should_call_all_listener_when_mock_throws_exception()
|
/external/mockito/src/main/java/org/mockito/internal/creation/ |
D | MockSettingsImpl.java | 169 invocationListeners(new VerboseMockInvocationLogger()); in verboseLogging() 175 public MockSettings invocationListeners(InvocationListener... listeners) { in invocationListeners() method in MockSettingsImpl 179 addListeners(listeners, invocationListeners, "invocationListeners"); in invocationListeners() 202 for (InvocationListener listener : invocationListeners) { in invocationListenersContainsType() 212 return this.invocationListeners; in getInvocationListeners() 216 return !invocationListeners.isEmpty(); in hasInvocationListeners()
|
/external/mockito/src/main/java/org/mockito/internal/creation/settings/ |
D | CreationSettings.java | 32 protected List<InvocationListener> invocationListeners = new ArrayList<InvocationListener>(); field in CreationSettings 53 this.invocationListeners = copy.invocationListeners; in CreationSettings() 122 return invocationListeners; in getInvocationListeners()
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | ListenersLostOnResetMockTest.java | 22 List mockedList = mock(List.class, withSettings().invocationListeners(invocationListener)); in listener()
|
/external/mockito/src/main/java/org/mockito/ |
D | MockSettings.java | 222 MockSettings invocationListeners(InvocationListener... listeners); in invocationListeners() method
|
/external/mockito/src/test/java/org/mockito/internal/handler/ |
D | InvocationNotifierHandlerTest.java | 55 …rrayList<Answer<?>>>) new MockSettingsImpl<ArrayList<Answer<?>>>().invocationListeners(customListe… in setUp()
|