Searched refs:keyMatcher (Results 1 – 3 of 3) sorted by relevance
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/ |
D | IsMapContaining.java | 14 private final Matcher<? super K> keyMatcher; field in IsMapContaining 17 public IsMapContaining(Matcher<? super K> keyMatcher, Matcher<? super V> valueMatcher) { in IsMapContaining() argument 18 this.keyMatcher = keyMatcher; in IsMapContaining() 25 if (keyMatcher.matches(entry.getKey()) && valueMatcher.matches(entry.getValue())) { in matchesSafely() 40 .appendDescriptionOf(keyMatcher) in describeTo() 58 …K,V> Matcher<Map<? extends K,? extends V>> hasEntry(Matcher<? super K> keyMatcher, Matcher<? super… in hasEntry() argument 59 return new IsMapContaining<K,V>(keyMatcher, valueMatcher); in hasEntry() 87 public static <K> Matcher<Map<? extends K, ?>> hasKey(Matcher<? super K> keyMatcher) { in hasKey() argument 88 return new IsMapContaining<K,Object>(keyMatcher, anything()); in hasKey()
|
/external/guice/core/test/com/google/inject/ |
D | ProvisionListenerTest.java | 546 private static Matcher<Binding<?>> keyMatcher(final Class<?> clazz) { in keyMatcher() method in ProvisionListenerTest 575 bindListener(keyMatcher(Instance.class), new ChainAsserter(pList, chain.build())); 578 bindListener(keyMatcher(A.class), new ChainAsserter(pList, chain.build())); 581 bindListener(keyMatcher(BImpl.class), new ChainAsserter(pList, chain.build())); 584 bindListener(keyMatcher(C.class), new ChainAsserter(pList, chain.build())); 589 bindListener(keyMatcher(D.class), new ChainAsserter(pList, chain.build())); 590 bindListener(keyMatcher(DP.class), new ChainAsserter(pList, chain.build())); 593 bindListener(keyMatcher(E.class), new ChainAsserter(pList, chain.build())); 596 bindListener(keyMatcher(F.class), new ChainAsserter(pList, chain.build()));
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/ |
D | Matchers.java | 1058 …Map<? extends K,? extends V>> hasEntry(org.hamcrest.Matcher<? super K> keyMatcher, org.hamcrest.Ma… in hasEntry() argument 1059 return org.hamcrest.collection.IsMapContaining.<K,V>hasEntry(keyMatcher, valueMatcher); in hasEntry() 1087 …hamcrest.Matcher<java.util.Map<? extends K,?>> hasKey(org.hamcrest.Matcher<? super K> keyMatcher) { in hasKey() argument 1088 return org.hamcrest.collection.IsMapContaining.<K>hasKey(keyMatcher); in hasKey()
|