OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:wantedcount
(Results
1 - 13
of
13
) sorted by null
/external/mockito/src/org/mockito/internal/reporting/
Discrepancy.java
9
private final int
wantedCount
;
12
public Discrepancy(int
wantedCount
, int actualCount) {
13
this.
wantedCount
=
wantedCount
;
18
return
wantedCount
;
22
return Pluralizer.pluralize(
wantedCount
);
/external/mockito/src/org/mockito/internal/verification/checkers/
AtLeastDiscrepancy.java
11
public AtLeastDiscrepancy(int
wantedCount
, int actualCount) {
12
super(
wantedCount
, actualCount);
NumberOfInvocationsChecker.java
33
public void check(List<Invocation> invocations, InvocationMatcher wanted, int
wantedCount
) {
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);
NumberOfInvocationsInOrderChecker.java
34
public void check(List<Invocation> invocations, InvocationMatcher wanted, int
wantedCount
, InOrderContext context) {
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);
AtLeastXNumberOfInvocationsChecker.java
23
public void check(List<Invocation> invocations, InvocationMatcher wanted, int
wantedCount
) {
27
if (
wantedCount
> actualCount) {
29
reporter.tooLittleActualInvocations(new AtLeastDiscrepancy(
wantedCount
, actualCount), wanted, lastLocation);
AtLeastXNumberOfInvocationsInOrderChecker.java
29
public void check(List<Invocation> invocations, InvocationMatcher wanted, int
wantedCount
) {
34
if (
wantedCount
> actualCount) {
36
reporter.tooLittleActualInvocationsInOrder(new AtLeastDiscrepancy(
wantedCount
, actualCount), wanted, lastLocation);
NonGreedyNumberOfInvocationsInOrderChecker.java
35
public void check(List<Invocation> invocations, InvocationMatcher wanted, int
wantedCount
, InOrderContext context) {
38
while( actualCount <
wantedCount
){
41
reporter.tooLittleActualInvocationsInOrder(new Discrepancy(
wantedCount
, actualCount), wanted, lastLocation );
/external/mockito/src/org/mockito/internal/verification/
AtLeast.java
24
final int
wantedCount
;
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
;
Times.java
24
final int
wantedCount
;
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
;
Calls.java
21
final int
wantedCount
;
27
this.
wantedCount
= wantedNumberOfInvocations;
41
numberOfCalls.check( allInvocations, wanted,
wantedCount
, data.getOrderingContext());
46
return "Wanted invocations count (non-greedy): " +
wantedCount
;
/external/mockito/src/org/mockito/exceptions/
Discrepancy.java
14
public Discrepancy(int
wantedCount
, int actualCount) {
15
super(
wantedCount
, actualCount);
Reporter.java
351
public void tooManyActualInvocations(int
wantedCount
, int actualCount, DescribedInvocation wanted, Location firstUndesired) {
352
String message = createTooManyInvocationsMessage(
wantedCount
, actualCount, wanted, firstUndesired);
356
private String createTooManyInvocationsMessage(int
wantedCount
, int actualCount, DescribedInvocation wanted,
360
"Wanted " + pluralize(
wantedCount
) + ":",
379
public void tooManyActualInvocationsInOrder(int
wantedCount
, int actualCount, DescribedInvocation wanted, Location firstUndesired) {
380
String message = createTooManyInvocationsMessage(
wantedCount
, actualCount, wanted, firstUndesired);
[
all
...]
/external/mockito/src/org/mockito/internal/invocation/
InvocationsFinder.java
43
public List<Invocation> findMatchingChunk(List<Invocation> invocations, InvocationMatcher wanted, int
wantedCount
, InOrderContext context) {
47
if (
wantedCount
!= firstChunk.size()) {
Completed in 384 milliseconds