Home
last modified time | relevance | path

Searched refs:getMock (Results 1 – 25 of 66) sorted by relevance

123

/external/mockito/src/main/java/org/mockito/internal/listeners/
DVerificationStartedNotifier.java22 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/
DUnusedStubsExceptionMessageTest.java27 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();
DSilentRunnerTest.java119 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/
DInvocationMatcher.java81 …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/
DVerificationStartedListenerTest.java64 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/
DTriesToReturnSelf.java19 Object mock = invocation.getMock(); in answer()
23 return invocation.getMock(); in answer()
DReturnsDeepStubs.java49 … actualParameterizedType(invocation.getMock()).resolveGenericReturnType(invocation.getMethod()); in answer()
60 InvocationContainerImpl container = MockUtil.getInvocationContainer(invocation.getMock()); in deepStub()
72 newDeepStubMock(returnTypeGenericMetadata, invocation.getMock()), in deepStub()
DForwardsInvocations.java39 …delegatedMethodHasWrongReturnType(mockMethod, delegateMethod, invocation.getMock(), delegatedObjec… in answer()
45 … throw delegatedMethodDoesNotExistOnDelegate(mockMethod, invocation.getMock(), delegatedObject); in answer()
DReturnsEmptyValues.java59 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/
DMockAccessTest.java22 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/
DArgMismatchFinder.java24 if (!stubbing.wasUsed() && stubbing.getInvocation().getMock() == i.getMock() in getStubbingArgMismatches()
/external/mockito/src/test/java/org/mockito/internal/stubbing/
DInvocationContainerImplTest.java87 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/
DAnnotationsTest.java72 assertNotNull(sub.getMock()); in shouldLookForAnnotatedMocksInSuperClasses()
116 public IMethods getMock() { in getMock() method in AnnotationsTest.Sub
/external/mockito/src/main/java/org/mockito/internal/handler/
DMockHandlerImpl.java70 if (((MockAwareVerificationMode) verificationMode).getMock() == invocation.getMock()) { in handle()
/external/mockito/src/main/java/org/mockito/
DBDDMockito.java144 <M> M getMock(); in getMock() method
187 public <M> M getMock() { in getMock() method in BDDMockito.BDDOngoingStubbingImpl
188 return (M) mockitoOngoingStubbing.getMock(); in getMock()
DMockingDetails.java133 Object getMock(); in getMock() method
/external/easymock/src/org/easymock/internal/
DExpectedInvocation.java89 return matchers != null ? this.invocation.getMock().equals( in matches()
90 actual.getMock()) in matches()
/external/mockito/src/main/java/org/mockito/listeners/
DVerificationStartedEvent.java41 Object getMock(); in getMock() method
/external/mockito/src/main/java/org/mockito/verification/
DVerificationEvent.java18 Object getMock(); in getMock() method
/external/mockito/src/main/java/org/mockito/invocation/
DInvocationOnMock.java24 Object getMock(); in getMock() method
/external/mockito/src/test/java/org/mockito/internal/util/
DDefaultMockingDetailsTest.java46 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/
DDefaultAnswerValidator.java17 invocation.getMock(), in validateReturnValueFor()
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DConsecutiveStubbing.java27 public <M> M getMock() { in getMock() method in ConsecutiveStubbing
/external/mockito/src/main/java/org/mockito/internal/exceptions/
DReporter.java440 … "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/
DVerificationEventImpl.java25 public Object getMock() { in getMock() method in VerificationEventImpl

123