Class ShouldNotContainKeys

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldNotContainKeys
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies a map does not contain keys.
    Author:
    dorzey
    • Constructor Detail

      • ShouldNotContainKeys

        private ShouldNotContainKeys​(Object actual,
                                     Set<K> key)
    • Method Detail

      • shouldNotContainKeys

        public static <K> ErrorMessageFactory shouldNotContainKeys​(Object actual,
                                                                   Set<K> keys)
        Creates a new ShouldNotContainKeys.
        Type Parameters:
        K - key type
        Parameters:
        actual - the actual value in the failed assertion.
        keys - the unexpected keys
        Returns:
        the created ErrorMessageFactory.