/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/ |
D | ReturnsArgumentAt.java | 53 public Object answer(InvocationOnMock invocation) throws Throwable { in answer() 68 public void validateFor(InvocationOnMock invocation) { in validateFor() 74 private int inferWantedArgumentPosition(InvocationOnMock invocation) { in inferWantedArgumentPosition() 81 …private void validateIndexWithinInvocationRange(InvocationOnMock invocation, int argumentPosition)… in validateIndexWithinInvocationRange() 89 private void validateArgumentTypeCompatibility(Invocation invocation, int argumentPosition) { in validateArgumentTypeCompatibility() 109 …private boolean wantedArgumentPositionIsValidForInvocation(InvocationOnMock invocation, int argume… in wantedArgumentPositionIsValidForInvocation() 120 private Class<?> inferArgumentType(Invocation invocation, int argumentIndex) { in inferArgumentType()
|
D | CallsRealMethods.java | 39 public Object answer(InvocationOnMock invocation) throws Throwable { in answer() 47 public void validateFor(InvocationOnMock invocation) { in validateFor()
|
D | DoesNothing.java | 28 public Object answer(InvocationOnMock invocation){ in answer() 33 public void validateFor(InvocationOnMock invocation) { in validateFor()
|
D | ThrowsException.java | 35 public Object answer(InvocationOnMock invocation) throws Throwable { in answer() 54 public void validateFor(InvocationOnMock invocation) { in validateFor()
|
D | AnswersWithDelay.java | 35 public Object answer(final InvocationOnMock invocation) throws Throwable { in answer() 41 public void validateFor(final InvocationOnMock invocation) { in validateFor()
|
D | Returns.java | 25 public Object answer(InvocationOnMock invocation) throws Throwable { in answer() 30 public void validateFor(InvocationOnMock invocation) { in validateFor()
|
/external/mockito/src/test/java/org/mockito/internal/verification/ |
D | OnlyTest.java | 25 private final Invocation invocation; field in OnlyTest.VerificationDataStub 28 public VerificationDataStub(InvocationMatcher wanted, Invocation invocation) { in VerificationDataStub() 50 Invocation invocation = new InvocationBuilder().toInvocation(); in shouldMarkAsVerified() local 63 Invocation invocation = new InvocationBuilder().toInvocation(); in shouldNotMarkAsVerifiedWhenAssertionFailed() local
|
/external/mockito/src/test/java/org/mockito/internal/verification/checkers/ |
D | AtLeastXNumberOfInvocationsCheckerTest.java | 31 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldMarkActualInvocationsAsVerifiedInOrder() local 45 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldReportTooLittleInvocationsInOrder() local 62 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldMarkActualInvocationsAsVerified() local 75 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldReportTooLittleInvocations() local
|
/external/mockito/src/test/java/org/mockito/internal/invocation/ |
D | InvocationMatcherTest.java | 45 Invocation invocation = new InvocationBuilder().toInvocation(); in should_be_a_citizen_of_hashes() local 103 …InvocationMatcher invocation = new InvocationBuilder().method(method).arg(sameArg).toInvocationMat… in should_not_be_similar_if_is_overloaded_but_used_with_the_same_arg() local 114 …InvocationMatcher invocation = new InvocationBuilder().mock(mock).method(method).arg("foo").toInvo… in should_be_similar_if_is_overloaded_but_used_with_different_arg() local 123 Invocation invocation = new InvocationBuilder().args("1", 100).toInvocation(); in should_capture_arguments_from_invocation() local 139 Invocation invocation = getLastInvocation(); in should_match_varargs_using_any_varargs() local 153 Invocation invocation = getLastInvocation(); in should_capture_varargs_as_vararg() local 168 Invocation invocation = getLastInvocation(); in should_capture_arguments_when_args_count_does_NOT_match() local
|
/external/mockito/src/test/java/org/mockito/ |
D | InvocationFactoryTest.java | 31 Invocation invocation = Mockito.framework().getInvocationFactory().createInvocation(mock, in call_method_that_throws_a_throwable() local 53 Invocation invocation = Mockito.framework().getInvocationFactory().createInvocation(mock, in call_method_that_returns_a_string() local 69 Invocation invocation = Mockito.framework().getInvocationFactory().createInvocation(mock, in deprecated_api_still_works() local
|
D | StaticMockingExperimentTest.java | 61 …Invocation invocation = Mockito.framework().getInvocationFactory().createInvocation(mock, withSett… in verify_static_method() local 89 …Invocation invocation = Mockito.framework().getInvocationFactory().createInvocation(mock, withSett… in verification_failure_static_method() local 107 …Invocation invocation = Mockito.framework().getInvocationFactory().createInvocation(mock, withSett… in stubbing_static_method() local 130 Invocation invocation = Mockito.framework().getInvocationFactory() in do_answer_stubbing_static_method() local 150 …Invocation invocation = Mockito.framework().getInvocationFactory().createInvocation(mock, withSett… in verify_no_more_interactions() local
|
/external/mockito/src/main/java/org/mockito/internal/invocation/ |
D | MatcherApplicationStrategy.java | 22 private final Invocation invocation; field in MatcherApplicationStrategy 28 …private MatcherApplicationStrategy(Invocation invocation, List<ArgumentMatcher<?>> matchers, Match… in MatcherApplicationStrategy() 52 …public static MatcherApplicationStrategy getMatcherApplicationStrategyFor(Invocation invocation, L… in getMatcherApplicationStrategyFor() 90 …private static MatcherApplicationType getMatcherApplicationType(Invocation invocation, List<Argume… in getMatcherApplicationType() 124 private static int varargLength(Invocation invocation) { in varargLength()
|
D | InvocationMatcher.java | 32 private final Invocation invocation; field in InvocationMatcher 36 public InvocationMatcher(Invocation invocation, List<ArgumentMatcher> matchers) { in InvocationMatcher() 46 public InvocationMatcher(Invocation invocation) { in InvocationMatcher() 130 public void captureArgumentsFrom(Invocation invocation) { in captureArgumentsFrom()
|
D | MatchersBinder.java | 23 …ocationMatcher bindMatchers(ArgumentMatcherStorage argumentMatcherStorage, Invocation invocation) { in bindMatchers() 34 private void validateMatchers(Invocation invocation, List<LocalizedMatcher> lastMatchers) { in validateMatchers()
|
/external/easymock/src/org/easymock/internal/ |
D | ExpectedInvocation.java | 31 private final Invocation invocation; field in ExpectedInvocation 38 public ExpectedInvocation(Invocation invocation, in ExpectedInvocation() 43 private ExpectedInvocation(Invocation invocation, in ExpectedInvocation() 52 private List<IArgumentMatcher> createMissingMatchers(Invocation invocation, in createMissingMatchers()
|
/external/mockito/src/main/java/org/mockito/internal/handler/ |
D | InvocationNotifierHandler.java | 33 public Object handle(Invocation invocation) throws Throwable { in handle() 45 private void notifyMethodCall(Invocation invocation, Object returnValue) { in notifyMethodCall() 55 private void notifyMethodCallException(Invocation invocation, Throwable exception) { in notifyMethodCallException()
|
D | NotifiedMethodInvocationReport.java | 17 private final Invocation invocation; field in NotifiedMethodInvocationReport 29 public NotifiedMethodInvocationReport(Invocation invocation, Object returnedValue) { in NotifiedMethodInvocationReport() 42 public NotifiedMethodInvocationReport(Invocation invocation, Throwable throwable) { in NotifiedMethodInvocationReport()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/ |
D | InvocationContainerImpl.java | 45 public void setInvocationForPotentialStubbing(MatchableInvocation invocation) { in setInvocationForPotentialStubbing() 67 Invocation invocation = invocationForStubbing.getInvocation(); in addAnswer() local 84 Object answerTo(Invocation invocation) throws Throwable { in answerTo() 88 public StubbedInvocationMatcher findAnswerFor(Invocation invocation) { in findAnswerFor() 118 public void setMethodForStubbing(MatchableInvocation invocation) { in setMethodForStubbing()
|
D | StubbedInvocationMatcher.java | 27 …public StubbedInvocationMatcher(Answer answer, MatchableInvocation invocation, Strictness strictne… in StubbedInvocationMatcher() 33 public Object answer(InvocationOnMock invocation) throws Throwable { in answer()
|
/external/mockito/src/main/java/org/mockito/internal/listeners/ |
D | StubbingLookupNotifier.java | 17 public static void notifyStubbedAnswerLookup(Invocation invocation, Stubbing stubbingFound, in notifyStubbedAnswerLookup() 30 final private Invocation invocation; field in StubbingLookupNotifier.Event 35 public Event(Invocation invocation, in Event()
|
/external/mockito/src/main/java/org/mockito/internal/reporting/ |
D | PrintSettings.java | 46 public String print(List<ArgumentMatcher> matchers, Invocation invocation) { in print() 57 public String print(Invocation invocation) { in print() 61 public String print(MatchableInvocation invocation) { in print()
|
/external/mockito/src/main/java/org/mockito/internal/verification/ |
D | SingleRegisteredInvocation.java | 16 private Invocation invocation; field in SingleRegisteredInvocation 18 public void add(Invocation invocation) { in add()
|
D | DefaultRegisteredInvocations.java | 24 public void add(Invocation invocation) { in add() 61 public boolean isOut(Invocation invocation) { in isOut()
|
/external/mockito/src/test/java/org/mockito/internal/handler/ |
D | MockHandlerFactoryTest.java | 36 Invocation invocation = super.getLastInvocation(); in handle_result_must_not_be_null_for_primitives() local 54 Invocation invocation = super.getLastInvocation(); in valid_handle_result_is_permitted() local
|
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/ |
D | ThrowsExceptionTest.java | 64 Invocation invocation = createMethodInvocation(); in should_invalidate_null_throwable() local 72 Invocation invocation = createMethodInvocation(); in should_throw_illegal_state_exception_if_null_answer() local
|