Class ShouldBeSubsetOf

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

public class ShouldBeSubsetOf extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that an Iterable is a subset of an other set Iterable failed.
Author:
Maciej Jaskowski
  • Method Details

    • shouldBeSubsetOf

      public static ErrorMessageFactory shouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected, org.assertj.core.internal.ComparisonStrategy comparisonStrategy)
      Creates a new ShouldBeSubsetOf
      Parameters:
      actual - the actual set
      values - the expected superset
      unexpected - the unexpected value
      comparisonStrategy - the ComparisonStrategy used
      Returns:
      the created ErrorMessageFactory
    • shouldBeSubsetOf

      public static ErrorMessageFactory shouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected)
      Creates a new ShouldBeSubsetOf.
      Parameters:
      actual - the actual set
      values - the expected superset
      unexpected - the unexpected value
      Returns:
      the created ErrorMessageFactory.