Home
last modified time | relevance | path

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

123

/external/mockito/src/test/java/org/mockitousage/junitrunner/
DUnusedStubsExceptionMessageTest.java23 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();
DSilentRunnerTest.java113 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/
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/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/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 InternalMockHandler<Object> handler = MockUtil.getMockHandler(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.java60 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/
DArgMismatchFinder.java24 if (!stubbing.wasUsed() && stubbing.getInvocation().getMock() == i.getMock() in getStubbingArgMismatches()
DDefaultStubbingLookupListener.java51 Collection<Stubbing> stubbings = mockingDetails(invocation.getMock()).getStubbings(); in potentialArgMismatches()
/external/mockito/src/test/java/org/mockitousage/annotation/
DAnnotationsTest.java71 assertNotNull(sub.getMock()); in shouldLookForAnnotatedMocksInSuperClasses()
113 public IMethods getMock() { in getMock() method in AnnotationsTest.Sub
/external/mockito/src/test/java/org/mockito/internal/stubbing/
DInvocationContainerImplTest.java86 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/
DExpectedInvocation.java89 return matchers != null ? this.invocation.getMock().equals( in matches()
90 actual.getMock()) in matches()
/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()
/external/mockito/src/main/java/org/mockito/internal/handler/
DMockHandlerImpl.java73 if (((MockAwareVerificationMode) verificationMode).getMock() == invocation.getMock()) { in handle()
/external/mockito/src/main/java/org/mockito/verification/
DVerificationEvent.java14 Object getMock(); in getMock() method
/external/mockito/src/main/java/org/mockito/invocation/
DInvocationOnMock.java24 Object getMock(); in getMock() method
/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
DOngoingStubbingImpl.java42 public <M> M getMock() { in getMock() method in OngoingStubbingImpl
/external/mockito/src/main/java/org/mockito/internal/verification/
DVerificationEventImpl.java21 public Object getMock() { in getMock() method in VerificationEventImpl
DMockAwareVerificationMode.java45 public Object getMock() { in getMock() method in MockAwareVerificationMode
/external/mockito/src/main/java/org/mockito/stubbing/
DOngoingStubbing.java236 <M> M getMock(); in getMock() method
/external/mockito/src/main/java/org/mockito/internal/exceptions/
DReporter.java423 … "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/
DPrintSettings.java49 …String qualifiedName = MockUtil.getMockName(invocation.getMock()) + "." + invocation.getMethod().g… in print()

123