Class IsMapContainingKey<K>

  • All Implemented Interfaces:
    org.hamcrest.Matcher<Map<K,​?>>, org.hamcrest.SelfDescribing

    public class IsMapContainingKey<K>
    extends MapTypeSafeMatcher<Map<K,​?>>
    • Constructor Detail

      • IsMapContainingKey

        public IsMapContainingKey​(org.hamcrest.Matcher<K> keyMatcher)
    • Method Detail

      • describeTo

        public void describeTo​(org.hamcrest.Description description)
      • hasKey

        public static <K> org.hamcrest.Matcher<Map<K,​?>> hasKey​(K key)
      • hasKey

        public static <K> org.hamcrest.Matcher<Map<K,​?>> hasKey​(org.hamcrest.Matcher<K> keyMatcher)