Class ShouldContainKeys

  • All Implemented Interfaces:
    org.assertj.core.error.ErrorMessageFactory

    public class ShouldContainKeys
    extends org.assertj.core.error.BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies a map contains some keys failed. TODO : move to assertj-core to replace ShouldContainKeys.
    Author:
    Joel Costigliola
    • Constructor Detail

      • ShouldContainKeys

        private ShouldContainKeys​(Object actual,
                                  Object key)
      • ShouldContainKeys

        private ShouldContainKeys​(Object actual,
                                  Object[] keys,
                                  Set<?> keysNotFound)
    • Method Detail

      • shouldContainKeys

        public static org.assertj.core.error.ErrorMessageFactory shouldContainKeys​(Object actual,
                                                                                   Object[] keys,
                                                                                   Set<?> keysNotFound)
        Creates a new ShouldContainKeys.
        Parameters:
        actual - the actual value in the failed assertion.
        keys - the expected keys.
        keysNotFound - the missing keys.
        Returns:
        the created ErrorMessageFactory.