Interface MultiConstraintAssertion

All Known Subinterfaces:
ShadowVariableAwareMultiConstraintAssertion
All Known Implementing Classes:
AbstractMultiConstraintAssertion, DefaultMultiConstraintAssertion, DefaultShadowVariableAwareMultiConstraintAssertion

public interface MultiConstraintAssertion
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    scores(@NonNull Score<?> score)
    Asserts that the ConstraintProvider under test, given a set of facts, results in a specific Score.
    void
    scores(@NonNull Score<?> score, @Nullable String message)
    As defined by scores(Score).
  • Method Details

    • scores

      default void scores(@NonNull Score<?> score)
      Asserts that the ConstraintProvider under test, given a set of facts, results in a specific Score.
      Parameters:
      score - total score calculated for the given set of facts
      Throws:
      AssertionError - when the expected score does not match the calculated score
    • scores

      void scores(@NonNull Score<?> score, @Nullable String message)
      As defined by scores(Score).
      Parameters:
      score - total score calculated for the given set of facts
      message - description of the scenario being asserted
      Throws:
      AssertionError - when the expected score does not match the calculated score