/external/mockito/src/org/mockito/exceptions/ |
H A D | Discrepancy.java | 14 public Discrepancy(int wantedCount, int actualCount) {
argument 15 super(wantedCount, actualCount);
|
H A D | Reporter.java | 351 public void tooManyActualInvocations(int wantedCount, int actualCount, DescribedInvocation wanted, Location firstUndesired) { argument 352 String message = createTooManyInvocationsMessage(wantedCount, actualCount, wanted, firstUndesired); 356 private String createTooManyInvocationsMessage(int wantedCount, int actualCount, DescribedInvocation wanted, argument 360 "Wanted " + pluralize(wantedCount) + ":", 379 public void tooManyActualInvocationsInOrder(int wantedCount, int actualCount, DescribedInvocation wanted, Location firstUndesired) { argument 380 String message = createTooManyInvocationsMessage(wantedCount, actualCount, wanted, firstUndesired);
|
/external/mockito/src/org/mockito/internal/verification/checkers/ |
H A D | AtLeastDiscrepancy.java | 11 public AtLeastDiscrepancy(int wantedCount, int actualCount) {
argument 12 super(wantedCount, actualCount);
|
H A D | AtLeastXNumberOfInvocationsChecker.java | 23 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) { argument 27 if (wantedCount > actualCount) { 29 reporter.tooLittleActualInvocations(new AtLeastDiscrepancy(wantedCount, actualCount), wanted, lastLocation);
|
H A D | AtLeastXNumberOfInvocationsInOrderChecker.java | 29 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) { argument 34 if (wantedCount > actualCount) { 36 reporter.tooLittleActualInvocationsInOrder(new AtLeastDiscrepancy(wantedCount, actualCount), wanted, lastLocation);
|
H A D | NonGreedyNumberOfInvocationsInOrderChecker.java | 35 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context) { argument 38 while( actualCount < wantedCount ){ 41 reporter.tooLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, lastLocation );
|
H A D | NumberOfInvocationsChecker.java | 33 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) { argument 37 if (wantedCount > actualCount) { 39 reporter.tooLittleActualInvocations(new Discrepancy(wantedCount, actualCount), wanted, lastInvocation); 40 } else if (wantedCount == 0 && actualCount > 0) { 41 Location firstUndesired = actualInvocations.get(wantedCount).getLocation(); 43 } else if (wantedCount < actualCount) { 44 Location firstUndesired = actualInvocations.get(wantedCount).getLocation(); 45 reporter.tooManyActualInvocations(wantedCount, actualCount, wanted, firstUndesired);
|
H A D | NumberOfInvocationsInOrderChecker.java | 34 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context) { argument 35 List<Invocation> chunk = finder.findMatchingChunk(invocations, wanted, wantedCount, context); 39 if (wantedCount > actualCount) { 41 reporter.tooLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, lastInvocation); 42 } else if (wantedCount < actualCount) { 43 Location firstUndesired = chunk.get(wantedCount).getLocation(); 44 reporter.tooManyActualInvocationsInOrder(wantedCount, actualCount, wanted, firstUndesired);
|
/external/mockito/src/org/mockito/internal/reporting/ |
H A D | Discrepancy.java | 9 private final int wantedCount;
field in class:Discrepancy 12 public Discrepancy(int wantedCount, int actualCount) {
argument 13 this.wantedCount = wantedCount;
18 return wantedCount;
22 return Pluralizer.pluralize(wantedCount);
|
/external/mockito/src/org/mockito/internal/verification/ |
H A D | AtLeast.java | 24 final int wantedCount; field in class:AtLeast 30 this.wantedCount = wantedNumberOfInvocations; 37 if (wantedCount == 1) { 40 numberOfInvocations.check(data.getAllInvocations(), data.getWanted(), wantedCount); 50 if (wantedCount == 1) { 54 numberOfCalls.check(allInvocations, wanted, wantedCount); 59 return "Wanted invocations count: at least " + wantedCount;
|
H A D | Calls.java | 21 final int wantedCount; field in class:Calls 27 this.wantedCount = wantedNumberOfInvocations; 41 numberOfCalls.check( allInvocations, wanted, wantedCount, data.getOrderingContext()); 46 return "Wanted invocations count (non-greedy): " + wantedCount;
|
H A D | Times.java | 24 final int wantedCount; field in class:Times 30 this.wantedCount = wantedNumberOfInvocations; 34 if (wantedCount > 0) { 39 numberOfInvocations.check(data.getAllInvocations(), data.getWanted(), wantedCount); 46 if (wantedCount > 0) { 51 numberOfCalls.check(allInvocations, wanted, wantedCount, data.getOrderingContext()); 56 return "Wanted invocations count: " + wantedCount;
|
/external/mockito/src/org/mockito/internal/invocation/ |
H A D | InvocationsFinder.java | 43 public List<Invocation> findMatchingChunk(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context) { argument 47 if (wantedCount != firstChunk.size()) {
|
/external/dexmaker/lib/ |
H A D | mockito-core-1.9.1-SNAPSHOT.jar | META-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/mockito/asm/ org/mockito/asm/signature/ ... |
/external/robolectric/lib/test/ |
H A D | mockito-core-1.8.5.jar | META-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/mockito/asm/ org/mockito/asm/signature/ ... |