HomeSort by relevance Sort by last modified time
    Searched refs:wanted (Results 1 - 25 of 145) sorted by null

1 2 3 4 5 6

  /external/mockito/src/org/mockito/internal/matchers/
Equals.java 17 private final Object wanted; field in class:Equals
19 public Equals(Object wanted) {
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 == null && other.wanted == null || this.wanted != null && this.wanted.equals(other.wanted)
    [all...]
Same.java 17 private final Object wanted; field in class:Same
19 public Same(Object wanted) {
20 this.wanted = wanted;
24 return wanted == actual;
30 description.appendText("" + wanted);
36 if (wanted instanceof String) {
38 } else if (wanted instanceof Character) {
ArrayEquals.java 17 public ArrayEquals(Object wanted) {
18 super(wanted);
22 Object wanted = getWanted(); local
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, (char[]) actual)
    [all...]
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 + ")");
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/
ReflectionEquals.java 15 private final Object wanted; field in class:ReflectionEquals
18 public ReflectionEquals(Object wanted, String... excludeFields) {
19 this.wanted = wanted;
24 return EqualsBuilder.reflectionEquals(wanted, actual, excludeFields);
28 description.appendText("refEq(" + wanted + ")");
  /external/mockito/src/org/mockito/internal/reporting/
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) {
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/
VerificationDataInOrderImpl.java 16 private final InvocationMatcher wanted; field in class:VerificationDataInOrderImpl
18 public VerificationDataInOrderImpl(InOrderContext inOrder, List<Invocation> allInvocations, InvocationMatcher wanted) {
21 this.wanted = wanted;
33 return wanted;
  /external/mockito/src/org/mockito/internal/verification/
VerificationDataImpl.java 18 private final InvocationMatcher wanted; field in class:VerificationDataImpl
21 public VerificationDataImpl(InvocationContainer invocations, InvocationMatcher wanted) {
23 this.wanted = wanted;
32 return wanted;
36 if (wanted == null) {
40 if (o.isToString(wanted.getMethod())) {
  /external/mockito/src/org/mockito/internal/invocation/
InvocationMarker.java 14 public void markVerified(List<Invocation> invocations, CapturesArgumensFromInvocation wanted) {
16 markVerified(invocation, wanted);
20 public void markVerified(Invocation invocation, CapturesArgumensFromInvocation wanted) {
22 wanted.captureArgumentsFrom(invocation);
25 public void markVerifiedInOrder(List<Invocation> chunk, CapturesArgumensFromInvocation wanted, InOrderContext context) {
26 markVerified(chunk, wanted);
InvocationsFinder.java 19 public List<Invocation> findInvocations(List<Invocation> invocations, InvocationMatcher wanted) {
20 return ListUtil.filter(invocations, new RemoveNotMatching(wanted));
23 public List<Invocation> findAllMatchingUnverifiedChunks(List<Invocation> invocations, InvocationMatcher wanted, InOrderContext orderingContext) {
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) {
45 List<Invocation> firstChunk = getFirstMatchingChunk(wanted, unverified);
48 return this.findAllMatchingUnverifiedChunks(invocations, wanted, context)
138 private final InvocationMatcher wanted; field in class:InvocationsFinder.RemoveNotMatching
    [all...]
  /art/test/052-verifier-fun/src/
Main.java 33 static Object[] arrayCheck1(int wanted) {
40 switch (wanted) {
47 static Object arrayCheck1b(int wanted) {
56 switch (wanted) {
64 static Object[] arrayCheck2(int wanted) {
73 switch (wanted) {
81 static Object[] arrayCheck3(int wanted) {
88 switch (wanted) {
  /dalvik/tests/052-verifier-fun/src/
Main.java 19 static Object[] arrayCheck1(int wanted) {
26 switch (wanted) {
33 static Object arrayCheck1b(int wanted) {
42 switch (wanted) {
50 static Object[] arrayCheck2(int wanted) {
59 switch (wanted) {
67 static Object[] arrayCheck3(int wanted) {
74 switch (wanted) {
  /external/mockito/src/org/mockito/exceptions/verification/junit/
JUnitTool.java 19 public static AssertionError createArgumentsAreDifferentException(String message, String wanted, String actual) {
20 return org.mockito.internal.junit.JUnitTool.createArgumentsAreDifferentException(message, wanted, actual);
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/tests/
test_version.py 35 for v1, v2, wanted in versions:
39 if wanted is ValueError:
45 self.assertEqual(res, wanted,
47 (v1, v2, wanted, res))
61 for v1, v2, wanted in versions:
63 self.assertEqual(res, wanted,
65 (v1, v2, wanted, res))
test_build.py 24 wanted = os.path.join(cmd.build_base, 'lib')
25 self.assertEqual(cmd.build_purelib, wanted)
34 wanted = os.path.join(cmd.build_base, 'lib' + plat_spec)
35 self.assertEqual(cmd.build_platlib, wanted)
41 wanted = os.path.join(cmd.build_base, 'temp' + plat_spec)
42 self.assertEqual(cmd.build_temp, wanted)
45 wanted = os.path.join(cmd.build_base, 'scripts-' + sys.version[0:3])
46 self.assertEqual(cmd.build_scripts, wanted)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/tests/
test_version.py 35 for v1, v2, wanted in versions:
39 if wanted is ValueError:
45 self.assertEqual(res, wanted,
47 (v1, v2, wanted, res))
61 for v1, v2, wanted in versions:
63 self.assertEqual(res, wanted,
65 (v1, v2, wanted, res))
test_build.py 24 wanted = os.path.join(cmd.build_base, 'lib')
25 self.assertEqual(cmd.build_purelib, wanted)
34 wanted = os.path.join(cmd.build_base, 'lib' + plat_spec)
35 self.assertEqual(cmd.build_platlib, wanted)
41 wanted = os.path.join(cmd.build_base, 'temp' + plat_spec)
42 self.assertEqual(cmd.build_temp, wanted)
45 wanted = os.path.join(cmd.build_base, 'scripts-' + sys.version[0:3])
46 self.assertEqual(cmd.build_scripts, wanted)
  /external/mockito/src/org/mockito/internal/verification/checkers/
AtLeastXNumberOfInvocationsChecker.java 23 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) {
24 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted);
29 reporter.tooLittleActualInvocations(new AtLeastDiscrepancy(wantedCount, actualCount), wanted, lastLocation);
32 invocationMarker.markVerified(actualInvocations, wanted);
MissingInvocationInOrderChecker.java 33 public void check(List<Invocation> invocations, InvocationMatcher wanted, VerificationMode mode, InOrderContext context) {
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);
MissingInvocationChecker.java 31 public void check(List<Invocation> invocations, InvocationMatcher wanted) {
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);
NumberOfInvocationsChecker.java 33 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) {
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);
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);
41 reporter.tooLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, lastInvocation);
44 reporter.tooManyActualInvocationsInOrder(wantedCount, actualCount, wanted, firstUndesired);
47 invocationMarker.markVerifiedInOrder(chunk, wanted, context);
  /external/chromium_org/third_party/WebKit/Tools/Scripts/
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
  /external/mockito/src/org/mockito/internal/junit/
JUnitTool.java 26 public static AssertionError createArgumentsAreDifferentException(String message, String wanted, String actual) {
29 AssertionError throwable = (AssertionError) clazz.getConstructors()[0].newInstance(message, wanted, actual);

Completed in 1417 milliseconds

1 2 3 4 5 6