Class ShouldSatisfyOnlyOnce

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

public class ShouldSatisfyOnlyOnce extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that requirements are not satisfied only once.
  • Method Details

    • shouldSatisfyOnlyOnce

      public static <E> ErrorMessageFactory shouldSatisfyOnlyOnce(Iterable<? extends E> actual, List<? extends E> satisfiedElements)
      Creates a new ShouldSatisfyOnlyOnce.
      Type Parameters:
      E - the iterable elements type.
      Parameters:
      actual - the actual iterable in the failed assertion.
      satisfiedElements - the elements which satisfied the requirement
      Returns:
      the created ErrorMessageFactory.