Searched defs:wantedCount (Results 1 - 15 of 15) sorted by relevance

/external/mockito/src/org/mockito/exceptions/
H A DDiscrepancy.java14 public Discrepancy(int wantedCount, int actualCount) { argument
15 super(wantedCount, actualCount);
H A DReporter.java351 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 DAtLeastDiscrepancy.java11 public AtLeastDiscrepancy(int wantedCount, int actualCount) { argument
12 super(wantedCount, actualCount);
H A DAtLeastXNumberOfInvocationsChecker.java23 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 DAtLeastXNumberOfInvocationsInOrderChecker.java29 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 DNonGreedyNumberOfInvocationsInOrderChecker.java35 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 DNumberOfInvocationsChecker.java33 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 DNumberOfInvocationsInOrderChecker.java34 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 DDiscrepancy.java9 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 DAtLeast.java24 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 DCalls.java21 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 DTimes.java24 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 DInvocationsFinder.java43 public List<Invocation> findMatchingChunk(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context) { argument
47 if (wantedCount != firstChunk.size()) {
/external/dexmaker/lib/
H A Dmockito-core-1.9.1-SNAPSHOT.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/mockito/asm/ org/mockito/asm/signature/ ...
/external/robolectric/lib/test/
H A Dmockito-core-1.8.5.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/mockito/asm/ org/mockito/asm/signature/ ...

Completed in 104 milliseconds