Home
last modified time | relevance | path

Searched refs:hasKey (Results 1 – 6 of 6) sorted by relevance

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsMapContainingKeyTest.java11 import static org.hamcrest.collection.IsMapContaining.hasKey;
17 return hasKey("foo"); in createMatcher()
24 assertMatches("Matches single key", hasKey("a"), map); in testMatchesSingletonMapContainingKey()
33 assertMatches("Matches a", hasKey("a"), map); in testMatchesMapContainingKey()
34 assertMatches("Matches c", hasKey("c"), map); in testMatchesMapContainingKey()
54 assertThat(map, hasKey(1)); in testMatchesMapContainingKeyWithIntegerKeys()
62 assertThat(map, hasKey((Number)1)); in testMatchesMapContainingKeyWithNumberKeys()
69 assertDescription("map containing [\"a\"->ANYTHING]", hasKey("a")); in testHasReadableDescription()
73 assertMismatchDescription("map was []", hasKey("Foo"), new HashMap<String,Integer>()); in testDoesNotMatchEmptyMap()
82 assertMismatchDescription("map was [<a=1>, <b=2>, <c=3>]", hasKey("d"), map); in testDoesNotMatchMapMissingKey()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
DIsMapContaining.java87 public static <K> Matcher<Map<? extends K, ?>> hasKey(Matcher<? super K> keyMatcher) { in hasKey() method in IsMapContaining
100 public static <K> Matcher<Map<? extends K, ?>> hasKey(K key) { in hasKey() method in IsMapContaining
/external/guava/guava-tests/test/com/google/common/cache/
DLocalLoadingCacheTest.java163 assertThat(map).hasKey(three).withValue(one); in testStatsNoops()
164 assertThat(map).hasKey(one).withValue(two); in testStatsNoops()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
DMatchers.java1087 …public static <K> org.hamcrest.Matcher<java.util.Map<? extends K,?>> hasKey(org.hamcrest.Matcher<?… in hasKey() method in Matchers
1088 return org.hamcrest.collection.IsMapContaining.<K>hasKey(keyMatcher); in hasKey()
1100 public static <K> org.hamcrest.Matcher<java.util.Map<? extends K,?>> hasKey(K key) { in hasKey() method in Matchers
1101 return org.hamcrest.collection.IsMapContaining.<K>hasKey(key); in hasKey()
/external/hamcrest/
DCHANGES.txt84 generics bug in hasKey and hasValue static factories previously declared
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMap.java310 public IRubyObject hasKey(ThreadContext context, IRubyObject key) { in hasKey() method in RubyMap