/external/mockito/src/main/java/org/mockito/internal/verification/checkers/ |
D | NumberOfInvocationsChecker.java | 32 …eckNumberOfInvocations(List<Invocation> invocations, MatchableInvocation wanted, int wantedCount) { in checkNumberOfInvocations() argument 36 if (wantedCount > actualCount) { in checkNumberOfInvocations() 38 …throw tooLittleActualInvocations(new Discrepancy(wantedCount, actualCount), wanted, lastInvocation… in checkNumberOfInvocations() 40 if (wantedCount == 0 && actualCount > 0) { in checkNumberOfInvocations() 41 Location firstUndesired = actualInvocations.get(wantedCount).getLocation(); in checkNumberOfInvocations() 44 if (wantedCount < actualCount) { in checkNumberOfInvocations() 45 Location firstUndesired = actualInvocations.get(wantedCount).getLocation(); in checkNumberOfInvocations() 46 throw tooManyActualInvocations(wantedCount, actualCount, wanted, firstUndesired); in checkNumberOfInvocations() 52 …ocations(List<Invocation> invocations, MatchableInvocation wanted, int wantedCount, InOrderContext… in checkNumberOfInvocations() argument 53 List<Invocation> chunk = findMatchingChunk(invocations, wanted, wantedCount, context); in checkNumberOfInvocations() [all …]
|
D | NumberOfInvocationsInOrderChecker.java | 25 …public void check(List<Invocation> invocations, MatchableInvocation wanted, int wantedCount, InOrd… in check() argument 26 List<Invocation> chunk = findMatchingChunk(invocations, wanted, wantedCount, context); in check() 30 if (wantedCount > actualCount) { in check() 32 …throw tooLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, lastInv… in check() 34 if (wantedCount < actualCount) { in check() 35 Location firstUndesired = chunk.get(wantedCount).getLocation(); in check() 36 throw tooManyActualInvocationsInOrder(wantedCount, actualCount, wanted, firstUndesired); in check()
|
D | AtLeastXNumberOfInvocationsChecker.java | 24 …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, lastLoc… 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()
|
D | AtLeastDiscrepancy.java | 11 public AtLeastDiscrepancy(int wantedCount, int actualCount) { in AtLeastDiscrepancy() argument 12 super(wantedCount, actualCount); in AtLeastDiscrepancy()
|
/external/mockito/src/main/java/org/mockito/internal/reporting/ |
D | Discrepancy.java | 9 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/ |
D | AtLeast.java | 19 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()
|
D | Times.java | 22 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()
|
D | Calls.java | 22 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/ |
D | Reporter.java | 353 …public static MockitoAssertionError tooManyActualInvocations(int wantedCount, int actualCount, Des… in tooManyActualInvocations() argument 354 …String message = createTooManyInvocationsMessage(wantedCount, actualCount, wanted, firstUndesired); in tooManyActualInvocations() 358 …private static String createTooManyInvocationsMessage(int wantedCount, int actualCount, DescribedI… in createTooManyInvocationsMessage() argument 362 "Wanted " + pluralize(wantedCount) + ":", in createTooManyInvocationsMessage() 381 …public static MockitoAssertionError tooManyActualInvocationsInOrder(int wantedCount, int actualCou… in tooManyActualInvocationsInOrder() argument 382 …String message = createTooManyInvocationsMessage(wantedCount, actualCount, wanted, firstUndesired); in tooManyActualInvocationsInOrder()
|
/external/mockito/src/main/java/org/mockito/internal/invocation/ |
D | InvocationsFinder.java | 47 …ingChunk(List<Invocation> invocations, MatchableInvocation wanted, int wantedCount, InOrderContext… in findMatchingChunk() argument 51 if (wantedCount != firstChunk.size()) { in findMatchingChunk()
|
/external/robolectric/v1/lib/test/ |
D | mockito-core-1.8.5.jar | META-INF/
META-INF/MANIFEST.MF
org/
org/mockito/
org/ ... |