Home
last modified time | relevance | path

Searched refs:wantedCount (Results 1 – 9 of 9) sorted by relevance

/external/mockito/src/main/java/org/mockito/internal/verification/checkers/
DNumberOfInvocationsChecker.java33 …eckNumberOfInvocations(List<Invocation> invocations, MatchableInvocation wanted, int wantedCount) { in checkNumberOfInvocations() argument
37 if (wantedCount > actualCount) { in checkNumberOfInvocations()
39 … throw tooLittleActualInvocations(new Discrepancy(wantedCount, actualCount), wanted, allLocations); in checkNumberOfInvocations()
41 if (wantedCount == 0 && actualCount > 0) { in checkNumberOfInvocations()
44 if (wantedCount < actualCount) { in checkNumberOfInvocations()
45 …throw tooManyActualInvocations(wantedCount, actualCount, wanted, getAllLocations(actualInvocations… in checkNumberOfInvocations()
51 …ocations(List<Invocation> invocations, MatchableInvocation wanted, int wantedCount, InOrderContext… in checkNumberOfInvocations() argument
52 List<Invocation> chunk = findMatchingChunk(invocations, wanted, wantedCount, context); in checkNumberOfInvocations()
56 if (wantedCount > actualCount) { in checkNumberOfInvocations()
58 …throw tooLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, allLoca… in checkNumberOfInvocations()
[all …]
DAtLeastXNumberOfInvocationsChecker.java24 …astNumberOfInvocations(List<Invocation> invocations, MatchableInvocation wanted, int wantedCount) { in checkAtLeastNumberOfInvocations() argument
28 if (wantedCount > actualCount) { in checkAtLeastNumberOfInvocations()
30 …throw tooLittleActualInvocations(new AtLeastDiscrepancy(wantedCount, actualCount), wanted, allLoca… in checkAtLeastNumberOfInvocations()
36 …ocations(List<Invocation> invocations, MatchableInvocation wanted, int wantedCount,InOrderContext … in checkAtLeastNumberOfInvocations() argument
41 if (wantedCount > actualCount) { in checkAtLeastNumberOfInvocations()
43 …throw tooLittleActualInvocationsInOrder(new AtLeastDiscrepancy(wantedCount, actualCount), wanted, … in checkAtLeastNumberOfInvocations()
DAtLeastDiscrepancy.java11 public AtLeastDiscrepancy(int wantedCount, int actualCount) { in AtLeastDiscrepancy() argument
12 super(wantedCount, actualCount); in AtLeastDiscrepancy()
/external/mockito/src/main/java/org/mockito/internal/reporting/
DDiscrepancy.java9 private final int wantedCount; field in Discrepancy
12 public Discrepancy(int wantedCount, int actualCount) { in Discrepancy() argument
13 this.wantedCount = wantedCount; in Discrepancy()
18 return wantedCount; in getWantedCount()
22 return Pluralizer.pluralize(wantedCount); in getPluralizedWantedCount()
/external/mockito/src/main/java/org/mockito/internal/verification/
DAtLeast.java19 final int wantedCount; field in AtLeast
25 this.wantedCount = wantedNumberOfInvocations; in AtLeast()
30 if (wantedCount == 1) { in verify()
33 checkAtLeastNumberOfInvocations(data.getAllInvocations(), data.getTarget(), wantedCount); in verify() local
38 if (wantedCount == 1) { in verifyInOrder()
41 …checkAtLeastNumberOfInvocations(data.getAllInvocations(), data.getWanted(), wantedCount, data.getO… in verifyInOrder() local
46 return "Wanted invocations count: at least " + wantedCount; in toString()
DTimes.java22 final int wantedCount; field in Times
28 this.wantedCount = wantedNumberOfInvocations; in Times()
36 if (wantedCount > 0) { in verify()
39 checkNumberOfInvocations(invocations, wanted, wantedCount); in verify()
46 if (wantedCount > 0) { in verifyInOrder()
49 checkNumberOfInvocations(allInvocations, wanted, wantedCount, data.getOrderingContext()); in verifyInOrder()
54 return "Wanted invocations count: " + wantedCount; in toString()
DCalls.java22 final int wantedCount; field in Calls
28 this.wantedCount = wantedNumberOfInvocations; in Calls()
42 … checkNumberOfInvocationsNonGreedy(allInvocations, wanted, wantedCount, data.getOrderingContext()); in verifyInOrder()
47 return "Wanted invocations count (non-greedy): " + wantedCount; in toString()
/external/mockito/src/main/java/org/mockito/internal/exceptions/
DReporter.java362 …public static MockitoAssertionError tooManyActualInvocations(int wantedCount, int actualCount, Des… in tooManyActualInvocations() argument
363 … String message = createTooManyInvocationsMessage(wantedCount, actualCount, wanted, locations); in tooManyActualInvocations()
367 …private static String createTooManyInvocationsMessage(int wantedCount, int actualCount, DescribedI… in createTooManyInvocationsMessage() argument
371 "Wanted " + pluralize(wantedCount) + ":", in createTooManyInvocationsMessage()
389 …public static MockitoAssertionError tooManyActualInvocationsInOrder(int wantedCount, int actualCou… in tooManyActualInvocationsInOrder() argument
390 … String message = createTooManyInvocationsMessage(wantedCount, actualCount, wanted, invocations); in tooManyActualInvocationsInOrder()
/external/mockito/src/main/java/org/mockito/internal/invocation/
DInvocationsFinder.java47 …ingChunk(List<Invocation> invocations, MatchableInvocation wanted, int wantedCount, InOrderContext… in findMatchingChunk() argument
51 if (wantedCount != firstChunk.size()) { in findMatchingChunk()