/external/mockito/src/org/mockito/internal/matchers/ |
H A D | Equals.java | 17 private final Object wanted; field in class:Equals 19 public Equals(Object wanted) { argument 20 this.wanted = wanted; 24 return Equality.areEqual(this.wanted, actual); 28 description.appendText(describe(wanted)); 39 if (wanted instanceof String) { 41 } else if (wanted instanceof Character) { 49 return wanted; 58 return this.wanted [all...] |
H A D | Same.java | 17 private final Object wanted; field in class:Same 19 public Same(Object wanted) { argument 20 this.wanted = wanted; 24 return wanted == actual; 30 description.appendText("" + wanted); 36 if (wanted instanceof String) { 38 } else if (wanted instanceof Character) {
|
H A D | ArrayEquals.java | 17 public ArrayEquals(Object wanted) { argument 18 super(wanted); 22 Object wanted = getWanted(); 23 if (wanted == null || actual == null) { 25 } else if (wanted instanceof boolean[] && actual instanceof boolean[]) { 26 return Arrays.equals((boolean[]) wanted, (boolean[]) actual); 27 } else if (wanted instanceof byte[] && actual instanceof byte[]) { 28 return Arrays.equals((byte[]) wanted, (byte[]) actual); 29 } else if (wanted instanceof char[] && actual instanceof char[]) { 30 return Arrays.equals((char[]) wanted, (cha [all...] |
H A D | EqualsWithDelta.java | 17 private final Number wanted; field in class:EqualsWithDelta 22 this.wanted = value; 28 if (wanted == null ^ actual == null) { 32 if (wanted == null && actual == null) { 36 return wanted.doubleValue() - delta.doubleValue() <= actualNumber.doubleValue() 37 && actualNumber.doubleValue() <= wanted.doubleValue() 42 description.appendText("eq(" + wanted + ", " + delta + ")");
|
H A D | CompareTo.java | 13 private final Comparable<T> wanted; field in class:CompareTo 16 this.wanted = value; 26 return matchResult(((Comparable) actual).compareTo(wanted)); 30 description.appendText(getName() + "(" + wanted + ")");
|
/external/mockito/src/org/mockito/internal/matchers/apachecommons/ |
H A D | ReflectionEquals.java | 15 private final Object wanted; field in class:ReflectionEquals 18 public ReflectionEquals(Object wanted, String... excludeFields) { argument 19 this.wanted = wanted; 24 return EqualsBuilder.reflectionEquals(wanted, actual, excludeFields); 28 description.appendText("refEq(" + wanted + ")");
|
/external/mockito/src/org/mockito/internal/reporting/ |
H A D | SmartPrinter.java | 12 * Makes sure both wanted and actual are printed consistently (single line or multiline)
18 private final String wanted;
field in class:SmartPrinter 21 public SmartPrinter(InvocationMatcher wanted, Invocation actual, Integer ... indexesOfMatchersToBeDescribedWithExtraTypeInfo) {
argument 23 printSettings.setMultiline(wanted.toString().contains("\n") || actual.toString().contains("\n"));
26 this.wanted = printSettings.print(wanted);
31 return wanted;
|
/external/mockito/src/org/mockito/internal/verification/api/ |
H A D | VerificationDataInOrderImpl.java | 16 private final InvocationMatcher wanted;
field in class:VerificationDataInOrderImpl 18 public VerificationDataInOrderImpl(InOrderContext inOrder, List<Invocation> allInvocations, InvocationMatcher wanted) {
argument 21 this.wanted = wanted;
33 return wanted;
|
/external/mockito/src/org/mockito/internal/verification/ |
H A D | VerificationDataImpl.java | 18 private final InvocationMatcher wanted;
field in class:VerificationDataImpl 21 public VerificationDataImpl(InvocationContainer invocations, InvocationMatcher wanted) {
argument 23 this.wanted = wanted;
32 return wanted;
36 if (wanted == null) {
40 if (o.isToString(wanted.getMethod())) {
|
H A D | AtMost.java | 33 InvocationMatcher wanted = data.getWanted(); 36 List<Invocation> found = finder.findInvocations(invocations, wanted); 42 invocationMarker.markVerified(found, wanted);
|
/external/mockito/src/org/mockito/internal/invocation/ |
H A D | InvocationMarker.java | 14 public void markVerified(List<Invocation> invocations, CapturesArgumensFromInvocation wanted) {
argument 16 markVerified(invocation, wanted);
20 public void markVerified(Invocation invocation, CapturesArgumensFromInvocation wanted) {
argument 22 wanted.captureArgumentsFrom(invocation);
25 public void markVerifiedInOrder(List<Invocation> chunk, CapturesArgumensFromInvocation wanted, InOrderContext context) {
argument 26 markVerified(chunk, wanted);
|
H A D | InvocationsFinder.java | 19 public List<Invocation> findInvocations(List<Invocation> invocations, InvocationMatcher wanted) { argument 20 return ListUtil.filter(invocations, new RemoveNotMatching(wanted)); 23 public List<Invocation> findAllMatchingUnverifiedChunks(List<Invocation> invocations, InvocationMatcher wanted, InOrderContext orderingContext) { argument 25 return ListUtil.filter(unverified, new RemoveNotMatching(wanted)); 34 * if wanted is 1 and mode is times(2) then returns 37 * if wanted is 1 and mode is atLeast() then returns 40 * if wanted is 1 and mode is times(x), where x != 2 then returns 43 public List<Invocation> findMatchingChunk(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context) { argument 45 List<Invocation> firstChunk = getFirstMatchingChunk(wanted, unverified); 48 return this.findAllMatchingUnverifiedChunks(invocations, wanted, contex 54 getFirstMatchingChunk(InvocationMatcher wanted, List<Invocation> unverified) argument 66 findFirstMatchingUnverifiedInvocation( List<Invocation> invocations, InvocationMatcher wanted, InOrderContext context ) argument 75 findSimilarInvocation(List<Invocation> invocations, InvocationMatcher wanted) argument 138 private final InvocationMatcher wanted; field in class:InvocationsFinder.RemoveNotMatching 140 RemoveNotMatching(InvocationMatcher wanted) argument [all...] |
/external/mockito/src/org/mockito/exceptions/verification/junit/ |
H A D | JUnitTool.java | 19 public static AssertionError createArgumentsAreDifferentException(String message, String wanted, String actual) {
argument 20 return org.mockito.internal.junit.JUnitTool.createArgumentsAreDifferentException(message, wanted, actual);
|
H A D | ArgumentsAreDifferent.java | 19 public ArgumentsAreDifferent(String message, String wanted, String actual) { argument 20 super(message, wanted, actual);
|
/external/mockito/src/org/mockito/internal/verification/checkers/ |
H A D | AtLeastXNumberOfInvocationsChecker.java | 23 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) { argument 24 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted); 29 reporter.tooLittleActualInvocations(new AtLeastDiscrepancy(wantedCount, actualCount), wanted, lastLocation); 32 invocationMarker.markVerified(actualInvocations, wanted);
|
H A D | MissingInvocationInOrderChecker.java | 33 public void check(List<Invocation> invocations, InvocationMatcher wanted, VerificationMode mode, InOrderContext context) { argument 34 List<Invocation> chunk = finder.findAllMatchingUnverifiedChunks(invocations, wanted, context); 49 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted); 51 Invocation similar = finder.findSimilarInvocation(invocations, wanted); 54 new ArgumentMatchingTool().getSuspiciouslyNotMatchingArgsIndexes(wanted.getMatchers(), 56 SmartPrinter smartPrinter = new SmartPrinter(wanted, similar, indicesOfSimilarMatchingArguments); 59 reporter.wantedButNotInvoked(wanted); 63 reporter.wantedButNotInvokedInOrder(wanted, previousInOrder);
|
H A D | MissingInvocationChecker.java | 31 public void check(List<Invocation> invocations, InvocationMatcher wanted) { argument 32 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted); 35 Invocation similar = finder.findSimilarInvocation(invocations, wanted); 38 Integer[] indexesOfSuspiciousArgs = argumentMatchingTool.getSuspiciouslyNotMatchingArgsIndexes(wanted.getMatchers(), similar.getArguments()); 39 SmartPrinter smartPrinter = new SmartPrinter(wanted, similar, indexesOfSuspiciousArgs); 42 reporter.wantedButNotInvoked(wanted, invocations);
|
H A D | NumberOfInvocationsChecker.java | 33 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) { argument 34 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted); 39 reporter.tooLittleActualInvocations(new Discrepancy(wantedCount, actualCount), wanted, lastInvocation); 42 reporter.neverWantedButInvoked(wanted, firstUndesired); 45 reporter.tooManyActualInvocations(wantedCount, actualCount, wanted, firstUndesired); 48 invocationMarker.markVerified(actualInvocations, wanted);
|
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); 41 reporter.tooLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, lastInvocation); 44 reporter.tooManyActualInvocationsInOrder(wantedCount, actualCount, wanted, firstUndesired); 47 invocationMarker.markVerifiedInOrder(chunk, wanted, context);
|
H A D | AtLeastXNumberOfInvocationsInOrderChecker.java | 29 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) { argument 30 List<Invocation> chunk = finder.findAllMatchingUnverifiedChunks(invocations, wanted, orderingContext); 36 reporter.tooLittleActualInvocationsInOrder(new AtLeastDiscrepancy(wantedCount, actualCount), wanted, lastLocation); 39 invocationMarker.markVerifiedInOrder(chunk, wanted, orderingContext);
|
H A D | NonGreedyNumberOfInvocationsInOrderChecker.java | 35 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrderContext context) { argument 39 Invocation next = finder.findFirstMatchingUnverifiedInvocation( invocations, wanted, context ); 41 reporter.tooLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, lastLocation ); 43 marker.markVerified( next, wanted );
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/ |
H A D | do-file-rename | 46 find(\&wanted, "Source/JavaScriptCore"); 47 find(\&wanted, "Source/WebCore"); 48 find(\&wanted, "WebKit"); 49 find(\&wanted, "Source/WebKit2"); 51 sub wanted subroutine
|
H A D | do-webcore-rename | 72 find(\&wanted, "Source/JavaScriptCore"); 73 find(\&wanted, "Source/WebCore"); 74 find(\&wanted, "Source/WebKit"); 75 find(\&wanted, "Source/WebKit2"); 76 find(\&wanted, "Tools/DumpRenderTree"); 78 sub wanted subroutine
|
/external/mockito/src/org/mockito/internal/junit/ |
H A D | JUnitTool.java | 26 public static AssertionError createArgumentsAreDifferentException(String message, String wanted, String actual) {
argument 29 AssertionError throwable = (AssertionError) clazz.getConstructors()[0].newInstance(message, wanted, actual);
|
/external/mockito/src/org/mockito/exceptions/ |
H A D | Reporter.java | 289 public void argumentsAreDifferent(String wanted, String actual, Location actualLocation) { argument 291 wanted, 300 throw JUnitTool.createArgumentsAreDifferentException(message, wanted, actual); 306 public void wantedButNotInvoked(DescribedInvocation wanted) { argument 307 throw new WantedButNotInvoked(createWantedButNotInvokedMessage(wanted)); 310 public void wantedButNotInvoked(DescribedInvocation wanted, List<? extends DescribedInvocation> invocations) { argument 325 String message = createWantedButNotInvokedMessage(wanted); 329 private String createWantedButNotInvokedMessage(DescribedInvocation wanted) { argument 332 wanted.toString(), 338 public void wantedButNotInvokedInOrder(DescribedInvocation wanted, DescribedInvocatio argument 351 tooManyActualInvocations(int wantedCount, int actualCount, DescribedInvocation wanted, Location firstUndesired) argument 356 createTooManyInvocationsMessage(int wantedCount, int actualCount, DescribedInvocation wanted, Location firstUndesired) argument 368 neverWantedButInvoked(DescribedInvocation wanted, Location firstUndesired) argument 379 tooManyActualInvocationsInOrder(int wantedCount, int actualCount, DescribedInvocation wanted, Location firstUndesired) argument 386 createTooLittleInvocationsMessage(org.mockito.internal.reporting.Discrepancy discrepancy, DescribedInvocation wanted, Location lastActualInvocation) argument 401 tooLittleActualInvocations(org.mockito.internal.reporting.Discrepancy discrepancy, DescribedInvocation wanted, Location lastActualLocation) argument 407 tooLittleActualInvocationsInOrder(org.mockito.internal.reporting.Discrepancy discrepancy, DescribedInvocation wanted, Location lastActualLocation) argument [all...] |