Searched refs:matchers (Results 1 - 25 of 177) sorted by relevance

12345678

/external/junit/src/main/java/org/junit/matchers/
H A Dpackage-info.java7 * @see org.junit.matchers.JUnitMatchers
9 package org.junit.matchers
/external/mockito/src/main/java/org/mockito/internal/matchers/apachecommons/
H A Dpackage-info.java7 * Argument matchers that use Apache Commons Lang reflection-equality.
9 package org.mockito.internal.matchers.apachecommons;
/external/mockito/src/main/java/org/mockito/internal/matchers/
H A Dpackage-info.java7 * Argument matchers for verification and stubbing.
9 package org.mockito.internal.matchers;
H A DCapturesArguments.java5 package org.mockito.internal.matchers;
H A DContainsExtraTypeInfo.java5 package org.mockito.internal.matchers;
H A DVarargMatcher.java5 package org.mockito.internal.matchers;
/external/proguard/src/proguard/util/
H A DListMatcher.java33 private final StringMatcher[] matchers; field in class:ListMatcher
37 public ListMatcher(StringMatcher[] matchers) argument
39 this(matchers, null);
43 public ListMatcher(StringMatcher[] matchers, boolean[] negate) argument
45 this.matchers = matchers;
54 // Check the list of matchers.
55 for (int index = 0; index < matchers.length; index++)
57 StringMatcher matcher = matchers[index];
/external/mockito/src/main/java/org/mockito/internal/invocation/
H A DMatcherApplicationStrategy.java15 import org.mockito.internal.matchers.CapturingMatcher;
16 import org.mockito.internal.matchers.VarargMatcher;
22 private final List<ArgumentMatcher<?>> matchers; field in class:MatcherApplicationStrategy
27 private MatcherApplicationStrategy(Invocation invocation, List<ArgumentMatcher<?>> matchers, MatcherApplicationType matchingType) { argument
31 this.matchers = appendLastMatcherNTimes(matchers, times);
33 this.matchers = matchers;
41 * arguments of the given <b>invocation</b> using the given <b>matchers</b>.
45 * @param matchers
51 getMatcherApplicationStrategyFor(Invocation invocation, List<ArgumentMatcher<?>> matchers) argument
89 getMatcherApplicationType(Invocation invocation, List<ArgumentMatcher<?>> matchers) argument
105 isLastMatcherVargargMatcher(final List<ArgumentMatcher<?>> matchers) argument
109 appendLastMatcherNTimes(List<ArgumentMatcher<?>> matchers, int timesToAppendLastMatcher) argument
125 lastMatcher(List<ArgumentMatcher<?>> matchers) argument
[all...]
/external/easymock/src/org/easymock/internal/matchers/
H A DAnd.java16 package org.easymock.internal.matchers;
28 private final List<IArgumentMatcher> matchers; field in class:And
30 public And(List<IArgumentMatcher> matchers) { argument
31 this.matchers = matchers;
35 for (IArgumentMatcher matcher : matchers) {
45 for (Iterator<IArgumentMatcher> it = matchers.iterator(); it.hasNext();) {
H A DOr.java16 package org.easymock.internal.matchers;
28 private final List<IArgumentMatcher> matchers; field in class:Or
30 public Or(List<IArgumentMatcher> matchers) { argument
31 this.matchers = matchers;
35 for (IArgumentMatcher matcher : matchers) {
45 for (Iterator<IArgumentMatcher> it = matchers.iterator(); it.hasNext();) {
/external/junit/src/main/java/org/junit/rules/
H A DExpectedExceptionMatcherBuilder.java4 import static org.junit.matchers.JUnitMatchers.isThrowable;
16 private final List<Matcher<?>> matchers = new ArrayList<Matcher<?>>(); field in class:ExpectedExceptionMatcherBuilder
19 matchers.add(matcher);
23 return !matchers.isEmpty();
31 if (matchers.size() == 1) {
32 return cast(matchers.get(0));
39 return new ArrayList<Matcher<? super Throwable>>((List) matchers);
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
H A DIsIterableContainingInAnyOrder.java15 private final Collection<Matcher<? super T>> matchers; field in class:IsIterableContainingInAnyOrder
17 public IsIterableContainingInAnyOrder(Collection<Matcher<? super T>> matchers) { argument
18 this.matchers = matchers;
23 final Matching<T> matching = new Matching<T>(matchers, mismatchDescription);
36 .appendList("[", ", ", "]", matchers)
41 private final Collection<Matcher<? super S>> matchers; field in class:IsIterableContainingInAnyOrder.Matching
44 public Matching(Collection<Matcher<? super S>> matchers, Description mismatchDescription) { argument
45 this.matchers = new ArrayList<Matcher<? super S>>(matchers);
[all...]
H A DIsIterableContainingInOrder.java15 private final List<Matcher<? super E>> matchers; field in class:IsIterableContainingInOrder
17 public IsIterableContainingInOrder(List<Matcher<? super E>> matchers) { argument
18 this.matchers = matchers;
23 final MatchSeries<E> matchSeries = new MatchSeries<E>(matchers, mismatchDescription);
35 description.appendText("iterable containing ").appendList("[", ", ", "]", matchers);
39 private final List<Matcher<? super F>> matchers; field in class:IsIterableContainingInOrder.MatchSeries
43 public MatchSeries(List<Matcher<? super F>> matchers, Description mismatchDescription) { argument
45 if (matchers.isEmpty()) {
48 this.matchers
[all...]
H A DIsIterableContainingInRelativeOrder.java14 private final List<Matcher<? super E>> matchers; field in class:IsIterableContainingInRelativeOrder
16 public IsIterableContainingInRelativeOrder(List<Matcher<? super E>> matchers) { argument
17 this.matchers = matchers;
22 MatchSeriesInRelativeOrder<E> matchSeriesInRelativeOrder = new MatchSeriesInRelativeOrder<E>(matchers, mismatchDescription);
28 description.appendText("iterable containing ").appendList("[", ", ", "]", matchers).appendText(" in relative order");
32 public final List<Matcher<? super F>> matchers; field in class:IsIterableContainingInRelativeOrder.MatchSeriesInRelativeOrder
37 public MatchSeriesInRelativeOrder(List<Matcher<? super F>> matchers, Description mismatchDescription) { argument
39 if (matchers.isEmpty()) {
42 this.matchers
[all...]
H A DIsArrayContainingInAnyOrder.java16 private final Collection<Matcher<? super E>> matchers; field in class:IsArrayContainingInAnyOrder
18 public IsArrayContainingInAnyOrder(Collection<Matcher<? super E>> matchers) { argument
19 this.iterableMatcher = new IsIterableContainingInAnyOrder<E>(matchers);
20 this.matchers = matchers;
35 description.appendList("[", ", ", "]", matchers)
42 * examined array satisfies one matcher anywhere in the specified matchers.
44 * specified matchers.
47 * N.B. each of the specified matchers will only be used once during a given examination, so be
48 * careful when specifying matchers tha
[all...]
H A DIsArrayContainingInOrder.java16 private final Collection<Matcher<? super E>> matchers; field in class:IsArrayContainingInOrder
19 public IsArrayContainingInOrder(List<Matcher<? super E>> matchers) { argument
20 this.iterableMatcher = new IsIterableContainingInOrder<E>(matchers);
21 this.matchers = matchers;
36 description.appendList("[", ", ", "]", matchers);
50 List<Matcher<? super E>> matchers = new ArrayList<Matcher<? super E>>();
52 matchers.add(equalTo(item));
54 return arrayContaining(matchers);
59 * corresponding matcher in the specified matchers
[all...]
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
H A DAllOf.java11 * Calculates the logical conjunction of multiple matchers. Evaluation is shortcut, so
12 * subsequent matchers are not called if an earlier matcher returns <code>false</code>.
16 private final Iterable<Matcher<? super T>> matchers; field in class:AllOf
18 public AllOf(Iterable<Matcher<? super T>> matchers) { argument
19 this.matchers = matchers;
24 for (Matcher<? super T> matcher : matchers) {
36 description.appendList("(", " " + "and" + " ", ")", matchers);
40 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
44 public static <T> Matcher<T> allOf(Iterable<Matcher<? super T>> matchers) { argument
54 allOf(Matcher<? super T>.... matchers) argument
[all...]
H A DAnyOf.java10 * Calculates the logical disjunction of multiple matchers. Evaluation is shortcut, so
11 * subsequent matchers are not called if an earlier matcher returns <code>true</code>.
15 public AnyOf(Iterable<Matcher<? super T>> matchers) { argument
16 super(matchers);
30 * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
34 public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { argument
35 return new AnyOf<>(matchers);
39 * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
44 public static <T> AnyOf<T> anyOf(Matcher<? super T>... matchers) { argument
45 return anyOf((List) Arrays.asList(matchers));
[all...]
H A DShortcutCombination.java9 private final Iterable<Matcher<? super T>> matchers; field in class:ShortcutCombination
11 public ShortcutCombination(Iterable<Matcher<? super T>> matchers) { argument
12 this.matchers = matchers;
22 for (Matcher<? super T> matcher : matchers) {
31 description.appendList("(", " " + operator + " ", ")", matchers);
/external/easymock/src/org/easymock/internal/
H A DExpectedInvocation.java25 import org.easymock.internal.matchers.Equals;
36 private final List<IArgumentMatcher> matchers; field in class:ExpectedInvocation
39 List<IArgumentMatcher> matchers) {
40 this(invocation, matchers, null);
44 List<IArgumentMatcher> matchers, @SuppressWarnings("deprecation")
48 this.matchers = (matcher == null) ? createMissingMatchers(invocation,
49 matchers) : null;
53 List<IArgumentMatcher> matchers) {
54 if (matchers != null) {
55 if (matchers
38 ExpectedInvocation(Invocation invocation, List<IArgumentMatcher> matchers) argument
43 ExpectedInvocation(Invocation invocation, List<IArgumentMatcher> matchers, @SuppressWarnings(�) org.easymock.ArgumentsMatcher matcher) argument
52 createMissingMatchers(Invocation invocation, List<IArgumentMatcher> matchers) argument
[all...]
H A DLegacyMatcherProvider.java36 private transient Map<Method, ArgumentsMatcher> matchers = new HashMap<Method, ArgumentsMatcher>(); field in class:LegacyMatcherProvider
39 if (!matchers.containsKey(method)) {
43 matchers.put(method, defaultMatcher);
45 return matchers.get(method);
59 if (matchers.containsKey(method) && matchers.get(method) != matcher) {
68 matchers.put(method, matcher);
77 matchers = new HashMap<Method, ArgumentsMatcher>(map.size());
82 matchers.put(method, entry.getValue());
95 matchers
[all...]
/external/mockito/src/test/java/org/mockito/internal/invocation/
H A DMatcherApplicationStrategyTest.java12 import static org.mockito.internal.matchers.Any.ANY;
21 import org.mockito.internal.matchers.Any;
22 import org.mockito.internal.matchers.Equals;
23 import org.mockito.internal.matchers.InstanceOf;
34 private List matchers; field in class:MatcherApplicationStrategyTest
47 matchers = asList(new Equals("1"));
50 boolean match = getMatcherApplicationStrategyFor(invocation, matchers).forEachMatcherAndArgument(RETURN_ALWAYS_FALSE);
60 matchers = asList(new Equals("1"));
63 boolean match = getMatcherApplicationStrategyFor(invocation, matchers).forEachMatcherAndArgument(RETURN_ALWAYS_TRUE);
73 matchers
200 private List<ArgumentMatcher<?>> matchers = new ArrayList<ArgumentMatcher<?>>(); field in class:MatcherApplicationStrategyTest.RecordingAction
212 assertContainsExactly(ArgumentMatcher<?>.... matchers) argument
[all...]
/external/mockito/src/main/java/org/mockito/internal/matchers/text/
H A DMatchersPrinter.java5 package org.mockito.internal.matchers.text;
8 import org.mockito.internal.matchers.ContainsExtraTypeInfo;
18 public String getArgumentsLine(List<ArgumentMatcher> matchers, PrintSettings printSettings) { argument
19 Iterator args = applyPrintSettings(matchers, printSettings);
23 public String getArgumentsBlock(List<ArgumentMatcher> matchers, PrintSettings printSettings) { argument
24 Iterator args = applyPrintSettings(matchers, printSettings);
28 private Iterator<FormattedText> applyPrintSettings(List<ArgumentMatcher> matchers, PrintSettings printSettings) { argument
31 for (final ArgumentMatcher matcher : matchers) {
H A DFormattedText.java5 package org.mockito.internal.matchers.text;
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/internal/
H A DNullSafety.java12 final List<Matcher<? super E>> matchers = new ArrayList<Matcher<? super E>>(itemMatchers.length);
14 matchers.add((Matcher<? super E>) (itemMatcher == null ? IsNull.nullValue() : itemMatcher));
16 return matchers;

Completed in 1441 milliseconds

12345678