/external/mockito/src/test/java/org/mockitousage/junitrunner/ |
D | UnusedStubsExceptionMessageTest.java | 23 IMethods mock1 = when(mock(IMethods.class).simpleMethod(1)).thenReturn("1").getMock(); 24 IMethods mock2 = when(mock(IMethods.class).simpleMethod(2)).thenReturn("2").getMock(); 25 IMethods mock3 = when(mock(IMethods.class).simpleMethod(3)).thenReturn("3").getMock();
|
D | SilentRunnerTest.java | 113 IMethods mock1 = when(mock(IMethods.class).simpleMethod(1)).thenReturn("1").getMock(); 114 IMethods mock2 = when(mock(IMethods.class).simpleMethod(2)).thenReturn("2").getMock(); 115 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/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/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 InternalMockHandler<Object> handler = MockUtil.getMockHandler(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 | 60 Object mock = invocation.getMock(); in answer() 71 return invocation.getMock() == invocation.getArgument(0) ? 0 : 1; in answer()
|
/external/mockito/src/main/java/org/mockito/internal/junit/ |
D | ArgMismatchFinder.java | 24 if (!stubbing.wasUsed() && stubbing.getInvocation().getMock() == i.getMock() in getStubbingArgMismatches()
|
D | DefaultStubbingLookupListener.java | 51 Collection<Stubbing> stubbings = mockingDetails(invocation.getMock()).getStubbings(); in potentialArgMismatches()
|
/external/mockito/src/test/java/org/mockitousage/annotation/ |
D | AnnotationsTest.java | 71 assertNotNull(sub.getMock()); in shouldLookForAnnotatedMocksInSuperClasses() 113 public IMethods getMock() { in getMock() method in AnnotationsTest.Sub
|
/external/mockito/src/test/java/org/mockito/internal/stubbing/ |
D | InvocationContainerImplTest.java | 86 assertEquals(invocation.getMock(), container.invokedMock()); in should_return_invoked_mock() 93 assertEquals(invocation.getMock(), containerStubOnly.invokedMock()); in should_return_invoked_mock_stub_only()
|
/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/ |
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()
|
/external/mockito/src/main/java/org/mockito/internal/handler/ |
D | MockHandlerImpl.java | 73 if (((MockAwareVerificationMode) verificationMode).getMock() == invocation.getMock()) { in handle()
|
/external/mockito/src/main/java/org/mockito/verification/ |
D | VerificationEvent.java | 14 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/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
|
D | OngoingStubbingImpl.java | 42 public <M> M getMock() { in getMock() method in OngoingStubbingImpl
|
/external/mockito/src/main/java/org/mockito/internal/verification/ |
D | VerificationEventImpl.java | 21 public Object getMock() { in getMock() method in VerificationEventImpl
|
D | MockAwareVerificationMode.java | 45 public Object getMock() { in getMock() method in MockAwareVerificationMode
|
/external/mockito/src/main/java/org/mockito/stubbing/ |
D | OngoingStubbing.java | 236 <M> M getMock(); in getMock() method
|
/external/mockito/src/main/java/org/mockito/internal/exceptions/ |
D | Reporter.java | 423 … "But found this interaction on mock '" + safelyGetMockName(undesired.getMock()) + "':", in noMoreInteractionsWanted() 433 … "But found this interaction on mock '" + safelyGetMockName(undesired.getMock()) + "':", in noMoreInteractionsWantedInOrder() 724 … " -> " + safelyGetMockName(invocation.getMock()) + "." + invocation.getMethod().getName() + "()", in invalidArgumentPositionRangeAtInvocationTime() 758 … " -> " + safelyGetMockName(invocation.getMock()) + "." + invocation.getMethod().getName() + "()", in wrongTypeOfArgumentToReturn()
|
/external/mockito/src/main/java/org/mockito/internal/reporting/ |
D | PrintSettings.java | 49 …String qualifiedName = MockUtil.getMockName(invocation.getMock()) + "." + invocation.getMethod().g… in print()
|