/external/mockito/src/main/java/org/mockito/internal/listeners/ |
D | VerificationStartedNotifier.java | 22 return originalMockingDetails.getMock(); in notifyVerificationStarted() 28 return event.getMock(); in notifyVerificationStarted() 37 this.mock = originalMockingDetails.getMock(); in Event() 54 public Object getMock() { in getMock() method in VerificationStartedNotifier.Event
|
/external/mockito/src/test/java/org/mockitousage/junitrunner/ |
D | UnusedStubsExceptionMessageTest.java | 27 IMethods mock1 = when(mock(IMethods.class).simpleMethod(1)).thenReturn("1").getMock(); 28 IMethods mock2 = when(mock(IMethods.class).simpleMethod(2)).thenReturn("2").getMock(); 29 IMethods mock3 = when(mock(IMethods.class).simpleMethod(3)).thenReturn("3").getMock();
|
D | SilentRunnerTest.java | 119 IMethods mock1 = when(mock(IMethods.class).simpleMethod(1)).thenReturn("1").getMock(); 120 IMethods mock2 = when(mock(IMethods.class).simpleMethod(2)).thenReturn("2").getMock(); 121 IMethods mock3 = when(mock(IMethods.class).simpleMethod(3)).thenReturn("3").getMock();
|
/external/mockito/src/main/java/org/mockito/internal/invocation/ |
D | InvocationMatcher.java | 81 …return invocation.getMock().equals(candidate.getMock()) && hasSameMethod(candidate) && argumentsMa… in matches() 98 if (getInvocation().getMock() != candidate.getMock()) { in hasSimilarMethod()
|
/external/mockito/src/test/java/org/mockitousage/verification/ |
D | VerificationStartedListenerTest.java | 64 container.add(event.getMock()); in verification_started_event_contains_correct_mock() 84 container.add(event.getMock()); in listeners_are_executed_in_sequence() 90 container.add(event.getMock()); in listeners_are_executed_in_sequence()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/ |
D | TriesToReturnSelf.java | 19 Object mock = invocation.getMock(); in answer() 23 return invocation.getMock(); in answer()
|
D | ReturnsDeepStubs.java | 49 … actualParameterizedType(invocation.getMock()).resolveGenericReturnType(invocation.getMethod()); in answer() 60 InvocationContainerImpl container = MockUtil.getInvocationContainer(invocation.getMock()); in deepStub() 72 newDeepStubMock(returnTypeGenericMetadata, invocation.getMock()), in deepStub()
|
D | ForwardsInvocations.java | 39 …delegatedMethodHasWrongReturnType(mockMethod, delegateMethod, invocation.getMock(), delegatedObjec… in answer() 45 … throw delegatedMethodDoesNotExistOnDelegate(mockMethod, invocation.getMock(), delegatedObject); in answer()
|
D | ReturnsEmptyValues.java | 59 Object mock = invocation.getMock(); in answer() 70 return invocation.getMock() == invocation.getArgument(0) ? 0 : 1; in answer()
|
/external/mockito/src/test/java/org/mockitousage/basicapi/ |
D | MockAccessTest.java | 22 Set<?> returnedMock = when(expectedMock.isEmpty()).thenReturn(false).getMock(); in shouldAllowStubbedMockReferenceAccess() 29 Set<?> returnedMock = when(mock(Set.class).isEmpty()).thenReturn(false, true).getMock(); in stubbedMockShouldWorkAsUsual()
|
/external/mockito/src/main/java/org/mockito/internal/junit/ |
D | ArgMismatchFinder.java | 24 if (!stubbing.wasUsed() && stubbing.getInvocation().getMock() == i.getMock() in getStubbingArgMismatches()
|
/external/mockito/src/test/java/org/mockito/internal/stubbing/ |
D | InvocationContainerImplTest.java | 87 assertEquals(invocation.getMock(), container.invokedMock()); in should_return_invoked_mock() 94 assertEquals(invocation.getMock(), containerStubOnly.invokedMock()); in should_return_invoked_mock_stub_only()
|
/external/mockito/src/test/java/org/mockitousage/annotation/ |
D | AnnotationsTest.java | 72 assertNotNull(sub.getMock()); in shouldLookForAnnotatedMocksInSuperClasses() 116 public IMethods getMock() { in getMock() method in AnnotationsTest.Sub
|
/external/mockito/src/main/java/org/mockito/internal/handler/ |
D | MockHandlerImpl.java | 70 if (((MockAwareVerificationMode) verificationMode).getMock() == invocation.getMock()) { in handle()
|
/external/mockito/src/main/java/org/mockito/ |
D | BDDMockito.java | 144 <M> M getMock(); in getMock() method 187 public <M> M getMock() { in getMock() method in BDDMockito.BDDOngoingStubbingImpl 188 return (M) mockitoOngoingStubbing.getMock(); in getMock()
|
D | MockingDetails.java | 133 Object getMock(); in getMock() method
|
/external/easymock/src/org/easymock/internal/ |
D | ExpectedInvocation.java | 89 return matchers != null ? this.invocation.getMock().equals( in matches() 90 actual.getMock()) in matches()
|
/external/mockito/src/main/java/org/mockito/listeners/ |
D | VerificationStartedEvent.java | 41 Object getMock(); in getMock() method
|
/external/mockito/src/main/java/org/mockito/verification/ |
D | VerificationEvent.java | 18 Object getMock(); in getMock() method
|
/external/mockito/src/main/java/org/mockito/invocation/ |
D | InvocationOnMock.java | 24 Object getMock(); in getMock() method
|
/external/mockito/src/test/java/org/mockito/internal/util/ |
D | DefaultMockingDetailsTest.java | 46 assertEquals(mockingDetails(foo).getMock(), foo); in should_provide_original_mock() 47 assertEquals(mockingDetails(null).getMock(), null); in should_provide_original_mock()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/ |
D | DefaultAnswerValidator.java | 17 invocation.getMock(), in validateReturnValueFor()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/ |
D | ConsecutiveStubbing.java | 27 public <M> M getMock() { in getMock() method in ConsecutiveStubbing
|
/external/mockito/src/main/java/org/mockito/internal/exceptions/ |
D | Reporter.java | 440 … "But found this interaction on mock '" + safelyGetMockName(undesired.getMock()) + "':", in noMoreInteractionsWanted() 450 … "But found this interaction on mock '" + safelyGetMockName(undesired.getMock()) + "':", in noMoreInteractionsWantedInOrder() 743 … " -> " + safelyGetMockName(invocation.getMock()) + "." + invocation.getMethod().getName() + "()", in invalidArgumentPositionRangeAtInvocationTime() 777 … " -> " + safelyGetMockName(invocation.getMock()) + "." + invocation.getMethod().getName() + "()", in wrongTypeOfArgumentToReturn()
|
/external/mockito/src/main/java/org/mockito/internal/verification/ |
D | VerificationEventImpl.java | 25 public Object getMock() { in getMock() method in VerificationEventImpl
|