HomeSort by relevance Sort by last modified time
    Searched refs:equalTo (Results 26 - 50 of 113) sorted by null

12 3 4 5

  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
IsCollectionWithSize.java 8 import static org.hamcrest.core.IsEqual.equalTo;
27 * <pre>assertThat(Arrays.asList("foo", "bar"), hasSize(equalTo(2)))</pre>
47 return (Matcher)IsCollectionWithSize.hasSize(equalTo(size));
IsIterableWithSize.java 8 import static org.hamcrest.core.IsEqual.equalTo;
31 * <pre>assertThat(Arrays.asList("foo", "bar"), iterableWithSize(equalTo(2)))</pre>
51 return iterableWithSize(equalTo(size));
IsMapContaining.java 11 import static org.hamcrest.core.IsEqual.equalTo;
51 * <pre>assertThat(myMap, hasEntry(equalTo("bar"), equalTo("foo")))</pre>
75 return new IsMapContaining<K,V>(equalTo(key), equalTo(value));
82 * <pre>assertThat(myMap, hasKey(equalTo("bar")))</pre>
101 return new IsMapContaining<K,Object>(equalTo(key), anything());
108 * <pre>assertThat(myMap, hasValue(equalTo("foo")))</pre>
127 return new IsMapContaining<Object,V>(anything(), equalTo(value));
IsArrayContaining.java 9 import static org.hamcrest.core.IsEqual.equalTo;
58 * A shortcut to the frequently used <code>hasItemInArray(equalTo(x))</code>.
62 * <pre>assertThat(hasItemInArray(equalTo(x)))</pre>
68 Matcher<? super T> matcher = equalTo(element);
IsArrayContainingInAnyOrder.java 12 import static org.hamcrest.core.IsEqual.equalTo;
54 * <pre>assertThat(new String[]{"foo", "bar"}, arrayContainingInAnyOrder(equalTo("bar"), equalTo("foo")))</pre>
78 * <pre>assertThat(new String[]{"foo", "bar"}, arrayContainingInAnyOrder(Arrays.asList(equalTo("bar"), equalTo("foo"))))</pre>
108 matchers.add(equalTo(item));
IsArrayContainingInOrder.java 13 import static org.hamcrest.core.IsEqual.equalTo;
52 matchers.add(equalTo(item));
62 * <pre>assertThat(new String[]{"foo", "bar"}, contains(equalTo("foo"), equalTo("bar")))</pre>
80 * <pre>assertThat(new String[]{"foo", "bar"}, contains(Arrays.asList(equalTo("foo"), equalTo("bar"))))</pre>
IsIterableContainingInAnyOrder.java 12 import static org.hamcrest.core.IsEqual.equalTo;
94 * <pre>assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder(equalTo("bar"), equalTo("foo")))</pre>
126 matchers.add(equalTo(item));
145 * <pre>assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder(Arrays.asList(equalTo("bar"), equalTo("foo"))))</pre>
IsIterableContainingInOrder.java 12 import static org.hamcrest.core.IsEqual.equalTo;
98 matchers.add(equalTo(item));
109 * <pre>assertThat(Arrays.asList("foo"), contains(equalTo("foo")))</pre>
126 * <pre>assertThat(Arrays.asList("foo", "bar"), contains(equalTo("foo"), equalTo("bar")))</pre>
144 * <pre>assertThat(Arrays.asList("foo", "bar"), contains(Arrays.asList(equalTo("foo"), equalTo("bar"))))</pre>
IsIterableContainingInRelativeOrder.java 11 import static org.hamcrest.core.IsEqual.equalTo;
83 matchers.add(equalTo(item));
94 * <pre>assertThat(Arrays.asList("a", "b", "c", "d", "e"), containsInRelativeOrder(equalTo("b"), equalTo("d")))</pre>
108 * <pre>assertThat(Arrays.asList("a", "b", "c", "d", "e"), contains(Arrays.asList(equalTo("b"), equalTo("d"))))</pre>
  /external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/bdd/steps/
ComparingSteps.java 29 import static org.hamcrest.CoreMatchers.equalTo;
58 assertThat(first, is(equalTo(second)));
SharedSteps.java 41 import static org.hamcrest.core.IsEqual.equalTo;
100 assertThat(compilationUnit, is(equalTo(compilationUnit2)));
108 assertThat(compilationUnit.hashCode(), is(equalTo(compilationUnit2.hashCode())));
116 assertThat(compilationUnit, not(equalTo(compilationUnit2)));
124 assertThat(compilationUnit.hashCode(), not(equalTo(compilationUnit2.hashCode())));
  /external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
Is.java 7 import static org.hamcrest.core.IsEqual.equalTo;
14 * For example: assertThat(cheese, equalTo(smelly))
15 * vs. assertThat(cheese, is(equalTo(smelly)))
43 * <pre>assertThat(cheese, is(equalTo(smelly)))</pre>
45 * <pre>assertThat(cheese, equalTo(smelly))</pre>
53 * A shortcut to the frequently used <code>is(equalTo(x))</code>.
57 * <pre>assertThat(cheese, is(equalTo(smelly)))</pre>
61 return is(equalTo(value));
IsCollectionContaining.java 11 import static org.hamcrest.core.IsEqual.equalTo;
86 return new IsCollectionContaining<>(equalTo(item));
IsEqual.java 81 * assertThat("foo", equalTo("foo"));
82 * assertThat(new String[] {"foo", "bar"}, equalTo(new String[] {"foo", "bar"}));
86 public static <T> Matcher<T> equalTo(T operand) {
  /cts/hostsidetests/classloaders/splits/apps/src/com/android/cts/classloadersplitapp/
SplitAppTest.java 119 equalTo("dalvik.system.PathClassLoader"));
123 equalTo("dalvik.system.DelegateLastClassLoader"));
125 equalTo("dalvik.system.PathClassLoader"));
129 equalTo("dalvik.system.PathClassLoader"));
131 equalTo("dalvik.system.DelegateLastClassLoader"));
  /external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/
TimeSeriesTest.java 65 thrown.expectMessage(CoreMatchers.equalTo("labelValues"));
73 thrown.expectMessage(CoreMatchers.equalTo("labelValue"));
80 thrown.expectMessage(CoreMatchers.equalTo("points"));
88 thrown.expectMessage(CoreMatchers.equalTo("point"));
107 thrown.expectMessage(CoreMatchers.equalTo("labelValues"));
115 thrown.expectMessage(CoreMatchers.equalTo("labelValue"));
122 thrown.expectMessage(CoreMatchers.equalTo("point"));
MetricDescriptorTest.java 61 thrown.expectMessage(CoreMatchers.equalTo("labelKeys"));
69 thrown.expectMessage(CoreMatchers.equalTo("labelKey"));
  /cts/tests/tests/telephony/TestSmsRetrieverApp/src/android/telephony/cts/smsretriever/
MainActivity.java 19 import static org.hamcrest.Matchers.equalTo;
66 equalTo("testprefix1This is a test message" + token));
  /external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
IsIterableContainingInOrderTest.java 12 import static org.hamcrest.core.IsEqual.equalTo;
73 return new FeatureMatcher<WithValue, Integer>(equalTo(value), "value with", "value") {
IsIterableContainingInRelativeOrderTest.java 12 import static org.hamcrest.core.IsEqual.equalTo;
89 return new FeatureMatcher<WithValue, Integer>(equalTo(value), "value with", "value") {
  /cts/tests/tests/telecom/src/android/telecom/cts/
BaseRemoteTelecomTest.java 22 import static org.hamcrest.CoreMatchers.equalTo;
120 remoteConnectionService.outgoingConnections.size(), not(equalTo(0)));
143 remoteConnectionService.incomingConnections.size(), not(equalTo(0)));
  /cts/tests/accessibility/src/android/view/accessibility/cts/
AccessibilityDelegateTest.java 20 import static org.hamcrest.core.IsEqual.equalTo;
68 assertThat(mParentView.getAccessibilityDelegate(), is(equalTo(delegate)));
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/io/
FileMatchers.java 11 import static org.hamcrest.core.IsEqual.equalTo;
36 return aFileWithSize(equalTo(size));
  /external/guava/guava-tests/test/com/google/common/base/
PredicatesTest.java 503 * Tests for Predicates.equalTo(x).
507 Predicate<Integer> isOne = Predicates.equalTo(1);
516 .addEqualityGroup(Predicates.equalTo(1), Predicates.equalTo(1))
517 .addEqualityGroup(Predicates.equalTo(2))
518 .addEqualityGroup(Predicates.equalTo(null))
524 checkSerialization(Predicates.equalTo(1));
528 Predicate<Integer> isNull = Predicates.equalTo(null);
535 .addEqualityGroup(Predicates.equalTo(null), Predicates.equalTo(null)
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
IterablesTest.java 188 Predicate<String> predicate = Predicates.equalTo("pants");
199 Predicate<String> predicate = Predicates.equalTo("cool");
210 assertEquals("cool", Iterables.find(list, Predicates.equalTo("cool")));
211 assertEquals("pants", Iterables.find(list, Predicates.equalTo("pants")));
224 Iterables.find(list, Predicates.equalTo("cool"), "woot"));
226 Iterables.find(list, Predicates.equalTo("pants"), "woot"));
238 Iterables.tryFind(list, Predicates.equalTo("cool")));
240 Iterables.tryFind(list, Predicates.equalTo("pants")));
    [all...]

Completed in 2808 milliseconds

12 3 4 5