Class ShouldNotContainKeys

java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.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
  • Method Details

    • 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.