Class ShouldContainEntry

    • Constructor Detail

      • ShouldContainEntry

        private ShouldContainEntry​(Map<K,​V> actual,
                                   Condition<?> entryCondition)
      • ShouldContainEntry

        private ShouldContainEntry​(Map<K,​V> actual,
                                   Condition<? super K> keyCondition,
                                   Condition<? super V> valueCondition)
    • Method Detail

      • shouldContainEntry

        public static <K,​V> ErrorMessageFactory shouldContainEntry​(Map<K,​V> actual,
                                                                         Condition<?> entryCondition)
        Creates a new ShouldContainEntry.
        Type Parameters:
        K - key type
        V - value type
        Parameters:
        actual - the actual map in the failed assertion.
        entryCondition - entry condition.
        Returns:
        the created ErrorMessageFactory.
      • shouldContainEntry

        public static <K,​V> ErrorMessageFactory shouldContainEntry​(Map<K,​V> actual,
                                                                         Condition<? super K> keyCondition,
                                                                         Condition<? super V> valueCondition)
        Creates a new ShouldContainEntry.
        Type Parameters:
        K - key type
        V - value type
        Parameters:
        actual - the actual map in the failed assertion.
        keyCondition - key condition.
        valueCondition - value condition.
        Returns:
        the created ErrorMessageFactory.