Class ShouldContainKeys

java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.guava.error.ShouldContainKeys
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldContainKeys extends 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
  • Method Details

    • shouldContainKeys

      public static 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.