Home
last modified time | relevance | path

Searched refs:InvocationMatcher (Results 1 – 25 of 30) sorted by relevance

12

/external/mockito/src/test/java/org/mockito/internal/invocation/
DInvocationMatcherTest.java35 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()
57InvocationMatcher withOneArg = new InvocationMatcher(new InvocationBuilder().args("test").toInvoca… in should_not_equal_if_number_of_arguments_differ()
58InvocationMatcher withTwoArgs = new InvocationMatcher(new InvocationBuilder().args("test", 100).to… in should_not_equal_if_number_of_arguments_differ()
67InvocationMatcher notNull = new InvocationMatcher(new InvocationBuilder().toInvocation(), asList(m… in should_to_string_with_matchers()
69InvocationMatcher equals = new InvocationMatcher(new InvocationBuilder().toInvocation(), asList(mT… in should_to_string_with_matchers()
103InvocationMatcher invocation = new InvocationBuilder().method(method).arg(sameArg).toInvocationMat… in should_not_be_similar_if_is_overloaded_but_used_with_the_same_arg()
114InvocationMatcher invocation = new InvocationBuilder().mock(mock).method(method).arg("foo").toInvo… in should_be_similar_if_is_overloaded_but_used_with_different_arg()
[all …]
DInvocationsFinderTest.java52 …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()
DInvocationMarkerTest.java24 InvocationMatcher im = new InvocationBuilder().toInvocationMatcher(); in shouldMarkInvocationAsVerified()
39 MatchableInvocation c = new InvocationMatcher(i) { in shouldCaptureArguments()
57 InvocationMatcher im = new InvocationBuilder().toInvocationMatcher(); in shouldMarkInvocationsAsVerifiedInOrder()
DInvocationBuilder.java111 public InvocationMatcher toInvocationMatcher() { in toInvocationMatcher()
112 return new InvocationMatcher(toInvocation()); in toInvocationMatcher()
/external/mockito/src/main/java/org/mockito/internal/debugging/
DWarningsFinder.java7 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()
DFindingsListener.java7 import org.mockito.internal.invocation.InvocationMatcher;
11 void foundStubCalledWithDifferentArgs(Invocation unused, InvocationMatcher unstubbed); in foundStubCalledWithDifferentArgs()
15 void foundUnstubbed(InvocationMatcher unstubbed); in foundUnstubbed()
DWarningsCollector.java7 import org.mockito.internal.invocation.InvocationMatcher;
27 List<InvocationMatcher> allInvocationMatchers = InvocationMatcher.createFrom(all); in getWarnings()
DLoggingListener.java7 import org.mockito.internal.invocation.InvocationMatcher;
26 public void foundStubCalledWithDifferentArgs(Invocation unused, InvocationMatcher unstubbed) { in foundStubCalledWithDifferentArgs()
47 public void foundUnstubbed(InvocationMatcher unstubbed) { in foundUnstubbed()
DWarningsPrinterImpl.java7 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/
DWarningsFinderTest.java10 import org.mockito.internal.invocation.InvocationMatcher;
32 …WarningsFinder finder = new WarningsFinder(asList(unusedStub), Arrays.<InvocationMatcher>asList()); in shouldPrintUnusedStub()
42InvocationMatcher unstubbedInvocation = new InvocationBuilder().differentMethod().toInvocationMatc… in shouldPrintUnstubbedInvocation()
45 …er finder = new WarningsFinder(Arrays.<Invocation>asList(), Arrays.<InvocationMatcher>asList(unstu… in shouldPrintUnstubbedInvocation()
56InvocationMatcher 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/
DOnlyTest.java10 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()
DSmartPrinterTest.java12 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()
DVerificationDataImplTest.java10 import org.mockito.internal.invocation.InvocationMatcher;
19InvocationMatcher toString = new InvocationBuilder().method("toString").toInvocationMatcher(); in shouldToStringBeNotVerifiable()
/external/mockito/src/main/java/org/mockito/internal/invocation/
DInvocationMatcher.java30 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()
DMatchersBinder.java23 …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/
DVerificationDataImpl.java7 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/
DAtLeastXNumberOfInvocationsCheckerTest.java13 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()
DMissingInvocationCheckerTest.java18 import org.mockito.internal.invocation.InvocationMatcher;
25 private InvocationMatcher wanted;
/external/mockito/src/test/java/org/mockito/internal/stubbing/
DInvocationContainerImplStubbingTest.java13 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()
DInvocationContainerImplTest.java10 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/
DVerificationData.java7 import org.mockito.internal.invocation.InvocationMatcher;
50 InvocationMatcher getWanted(); in getWanted()
/external/mockito/src/main/java/org/mockito/internal/handler/
DMockHandlerImpl.java8 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/
DCustomVerificationTest.java10 import org.mockito.internal.invocation.InvocationMatcher;
43 InvocationMatcher target = data.getWanted(); in ignoreParametersUsingOldApi()
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DStubbedInvocationMatcher.java7 import org.mockito.internal.invocation.InvocationMatcher;
20 public class StubbedInvocationMatcher extends InvocationMatcher implements Serializable, Stubbing {
/external/mockito/src/test/java/org/mockitoutil/
DTestBase.java19 import org.mockito.internal.invocation.InvocationMatcher;
90 protected static InvocationMatcher invocationMatcherAt(String location) {

12