/external/mockito/src/test/java/org/mockito/internal/invocation/ |
D | InvocationMatcherTest.java | 35 private InvocationMatcher simpleMethod; 48 Map<InvocationMatcher, String> map = new HashMap<InvocationMatcher, String>(); in should_be_a_citizen_of_hashes() 49 map.put(new InvocationMatcher(invocation), "one"); in should_be_a_citizen_of_hashes() 50 map.put(new InvocationMatcher(invocationTwo), "two"); in should_be_a_citizen_of_hashes() 57 …InvocationMatcher withOneArg = new InvocationMatcher(new InvocationBuilder().args("test").toInvoca… in should_not_equal_if_number_of_arguments_differ() 58 …InvocationMatcher withTwoArgs = new InvocationMatcher(new InvocationBuilder().args("test", 100).to… in should_not_equal_if_number_of_arguments_differ() 67 …InvocationMatcher notNull = new InvocationMatcher(new InvocationBuilder().toInvocation(), asList(m… in should_to_string_with_matchers() 69 …InvocationMatcher equals = new InvocationMatcher(new InvocationBuilder().toInvocation(), asList(mT… in should_to_string_with_matchers() 103 …InvocationMatcher invocation = new InvocationBuilder().method(method).arg(sameArg).toInvocationMat… in should_not_be_similar_if_is_overloaded_but_used_with_the_same_arg() 114 …InvocationMatcher invocation = new InvocationBuilder().mock(mock).method(method).arg("foo").toInvo… in should_be_similar_if_is_overloaded_but_used_with_different_arg() [all …]
|
D | InvocationsFinderTest.java | 52 …cation> actual = InvocationsFinder.findInvocations(invocations, new InvocationMatcher(simpleMethod… in shouldFindActualInvocations() 55 …actual = InvocationsFinder.findInvocations(invocations, new InvocationMatcher(differentMethodInvoc… in shouldFindActualInvocations() 117 …on found = InvocationsFinder.findSimilarInvocation(invocations, new InvocationMatcher(overloadedSi… in shouldFindFirstSimilarInvocationByName() 127 …on found = InvocationsFinder.findSimilarInvocation(invocations, new InvocationMatcher(overloadedDi… in shouldFindInvocationWithTheSameMethod() 141 … InvocationsFinder.findAllMatchingUnverifiedChunks(invocations, new InvocationMatcher(simpleMethod… in shouldFindAllMatchingUnverifiedChunks() 145 … InvocationsFinder.findAllMatchingUnverifiedChunks(invocations, new InvocationMatcher(simpleMethod… in shouldFindAllMatchingUnverifiedChunks() 149 … InvocationsFinder.findAllMatchingUnverifiedChunks(invocations, new InvocationMatcher(simpleMethod… in shouldFindAllMatchingUnverifiedChunks() 155 …ation> chunk = InvocationsFinder.findMatchingChunk(invocations, new InvocationMatcher(simpleMethod… in shouldFindMatchingChunk() 164 …ation> chunk = InvocationsFinder.findMatchingChunk(invocations, new InvocationMatcher(simpleMethod… in shouldReturnAllChunksWhenModeIsAtLeastOnce() 173 …ation> chunk = InvocationsFinder.findMatchingChunk(invocations, new InvocationMatcher(simpleMethod… in shouldReturnAllChunksWhenWantedCountDoesntMatch()
|
D | InvocationMarkerTest.java | 24 InvocationMatcher im = new InvocationBuilder().toInvocationMatcher(); in shouldMarkInvocationAsVerified() 39 MatchableInvocation c = new InvocationMatcher(i) { in shouldCaptureArguments() 57 InvocationMatcher im = new InvocationBuilder().toInvocationMatcher(); in shouldMarkInvocationsAsVerifiedInOrder()
|
D | InvocationBuilder.java | 111 public InvocationMatcher toInvocationMatcher() { in toInvocationMatcher() 112 return new InvocationMatcher(toInvocation()); in toInvocationMatcher()
|
/external/mockito/src/main/java/org/mockito/internal/debugging/ |
D | WarningsFinder.java | 7 import org.mockito.internal.invocation.InvocationMatcher; 16 private final List<InvocationMatcher> baseAllInvocations; 18 public WarningsFinder(List<Invocation> unusedStubs, List<InvocationMatcher> allInvocations) { in WarningsFinder() 25 …List<InvocationMatcher> allInvocations = new LinkedList<InvocationMatcher>(this.baseAllInvocations… in find() 30 Iterator<InvocationMatcher> unstubbedIterator = allInvocations.iterator(); in find() 32 InvocationMatcher unstubbed = unstubbedIterator.next(); in find() 45 for (InvocationMatcher i : allInvocations) { in find()
|
D | FindingsListener.java | 7 import org.mockito.internal.invocation.InvocationMatcher; 11 void foundStubCalledWithDifferentArgs(Invocation unused, InvocationMatcher unstubbed); in foundStubCalledWithDifferentArgs() 15 void foundUnstubbed(InvocationMatcher unstubbed); in foundUnstubbed()
|
D | WarningsCollector.java | 7 import org.mockito.internal.invocation.InvocationMatcher; 27 List<InvocationMatcher> allInvocationMatchers = InvocationMatcher.createFrom(all); in getWarnings()
|
D | LoggingListener.java | 7 import org.mockito.internal.invocation.InvocationMatcher; 26 public void foundStubCalledWithDifferentArgs(Invocation unused, InvocationMatcher unstubbed) { in foundStubCalledWithDifferentArgs() 47 public void foundUnstubbed(InvocationMatcher unstubbed) { in foundUnstubbed()
|
D | WarningsPrinterImpl.java | 7 import org.mockito.internal.invocation.InvocationMatcher; 17 …public WarningsPrinterImpl(List<Invocation> unusedStubs, List<InvocationMatcher> allInvocations, b… in WarningsPrinterImpl()
|
/external/mockito/src/test/java/org/mockito/internal/debugging/ |
D | WarningsFinderTest.java | 10 import org.mockito.internal.invocation.InvocationMatcher; 32 …WarningsFinder finder = new WarningsFinder(asList(unusedStub), Arrays.<InvocationMatcher>asList()); in shouldPrintUnusedStub() 42 …InvocationMatcher unstubbedInvocation = new InvocationBuilder().differentMethod().toInvocationMatc… in shouldPrintUnstubbedInvocation() 45 …er finder = new WarningsFinder(Arrays.<Invocation>asList(), Arrays.<InvocationMatcher>asList(unstu… in shouldPrintUnstubbedInvocation() 56 … InvocationMatcher wrongArg = new InvocationBuilder().arg("bar").mock(mock).toInvocationMatcher(); in shouldPrintStubWasUsedWithDifferentArgs() 59 …nder = new WarningsFinder(Arrays.<Invocation> asList(stub), Arrays.<InvocationMatcher> asList(wron… in shouldPrintStubWasUsedWithDifferentArgs()
|
/external/mockito/src/test/java/org/mockito/internal/verification/ |
D | OnlyTest.java | 10 import org.mockito.internal.invocation.InvocationMatcher; 26 private final InvocationMatcher wanted; 28 public VerificationDataStub(InvocationMatcher wanted, Invocation invocation) { in VerificationDataStub() 42 public InvocationMatcher getWanted() { in getWanted() 54 only.verify(new VerificationDataStub(new InvocationMatcher(invocation), invocation)); in shouldMarkAsVerified()
|
D | SmartPrinterTest.java | 12 import org.mockito.internal.invocation.InvocationMatcher; 19 private InvocationMatcher multi; 20 private InvocationMatcher shortie; 26 multi = new InvocationMatcher(getLastInvocation()); in setup() 29 shortie = new InvocationMatcher(getLastInvocation()); in setup()
|
D | VerificationDataImplTest.java | 10 import org.mockito.internal.invocation.InvocationMatcher; 19 … InvocationMatcher toString = new InvocationBuilder().method("toString").toInvocationMatcher(); in shouldToStringBeNotVerifiable()
|
/external/mockito/src/main/java/org/mockito/internal/invocation/ |
D | InvocationMatcher.java | 30 public class InvocationMatcher implements MatchableInvocation, DescribedInvocation, Serializable { class 36 public InvocationMatcher(Invocation invocation, List<ArgumentMatcher> matchers) { in InvocationMatcher() method in InvocationMatcher 46 public InvocationMatcher(Invocation invocation) { in InvocationMatcher() method in InvocationMatcher 50 public static List<InvocationMatcher> createFrom(List<Invocation> invocations) { in createFrom() 51 LinkedList<InvocationMatcher> out = new LinkedList<InvocationMatcher>(); in createFrom() 53 out.add(new InvocationMatcher(i)); in createFrom()
|
D | MatchersBinder.java | 23 …public InvocationMatcher bindMatchers(ArgumentMatcherStorage argumentMatcherStorage, Invocation in… in bindMatchers() 31 return new InvocationMatcher(invocation, matchers); in bindMatchers()
|
/external/mockito/src/main/java/org/mockito/internal/verification/ |
D | VerificationDataImpl.java | 7 import org.mockito.internal.invocation.InvocationMatcher; 20 private final InvocationMatcher wanted; 23 public VerificationDataImpl(InvocationContainerImpl invocations, InvocationMatcher wanted) { in VerificationDataImpl() 40 public InvocationMatcher getWanted() { in getWanted()
|
/external/mockito/src/test/java/org/mockito/internal/verification/checkers/ |
D | AtLeastXNumberOfInvocationsCheckerTest.java | 13 import org.mockito.internal.invocation.InvocationMatcher; 35 …checkAtLeastNumberOfInvocations(asList(invocation, invocationTwo), new InvocationMatcher(invocatio… in shouldMarkActualInvocationsAsVerifiedInOrder() 54 …checkAtLeastNumberOfInvocations(asList(invocation, invocationTwo), new InvocationMatcher(invocatio… in shouldReportTooLittleInvocationsInOrder() 66 …checkAtLeastNumberOfInvocations(asList(invocation, invocationTwo), new InvocationMatcher(invocatio… in shouldMarkActualInvocationsAsVerified() 84 …checkAtLeastNumberOfInvocations(asList(invocation, invocationTwo), new InvocationMatcher(invocatio… in shouldReportTooLittleInvocations()
|
D | MissingInvocationCheckerTest.java | 18 import org.mockito.internal.invocation.InvocationMatcher; 25 private InvocationMatcher wanted;
|
/external/mockito/src/test/java/org/mockito/internal/stubbing/ |
D | InvocationContainerImplStubbingTest.java | 13 import org.mockito.internal.invocation.InvocationMatcher; 65 … invocationContainerImpl.setInvocationForPotentialStubbing(new InvocationMatcher(simpleMethod)); in should_get_results_for_methods() 69 … invocationContainerImpl.setInvocationForPotentialStubbing(new InvocationMatcher(differentMethod)); in should_get_results_for_methods() 82 …invocationContainerImplStubOnly.setInvocationForPotentialStubbing(new InvocationMatcher(simpleMeth… in should_get_results_for_methods_stub_only() 86 …invocationContainerImplStubOnly.setInvocationForPotentialStubbing(new InvocationMatcher(differentM… in should_get_results_for_methods_stub_only()
|
D | InvocationContainerImplTest.java | 10 import org.mockito.internal.invocation.InvocationMatcher; 57 c.setInvocationForPotentialStubbing(new InvocationMatcher(invocation)); in doShouldBeThreadSafe() 85 container.setInvocationForPotentialStubbing(new InvocationMatcher(invocation)); in should_return_invoked_mock() 92 containerStubOnly.setInvocationForPotentialStubbing(new InvocationMatcher(invocation)); in should_return_invoked_mock_stub_only()
|
/external/mockito/src/main/java/org/mockito/internal/verification/api/ |
D | VerificationData.java | 7 import org.mockito.internal.invocation.InvocationMatcher; 50 InvocationMatcher getWanted(); in getWanted()
|
/external/mockito/src/main/java/org/mockito/internal/handler/ |
D | MockHandlerImpl.java | 8 import org.mockito.internal.invocation.InvocationMatcher; 50 InvocationMatcher invocationMatcher = matchersBinder.bindMatchers( in handle() 59 InvocationMatcher invocationMatcher = matchersBinder.bindMatchers( in handle()
|
/external/mockito/src/test/java/org/mockitousage/verification/ |
D | CustomVerificationTest.java | 10 import org.mockito.internal.invocation.InvocationMatcher; 43 InvocationMatcher target = data.getWanted(); in ignoreParametersUsingOldApi()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/ |
D | StubbedInvocationMatcher.java | 7 import org.mockito.internal.invocation.InvocationMatcher; 20 public class StubbedInvocationMatcher extends InvocationMatcher implements Serializable, Stubbing {
|
/external/mockito/src/test/java/org/mockitoutil/ |
D | TestBase.java | 19 import org.mockito.internal.invocation.InvocationMatcher; 90 protected static InvocationMatcher invocationMatcherAt(String location) {
|