Interface MultiConstraintAssertion

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void scores​(org.optaplanner.core.api.score.Score<?> score)
      Asserts that the ConstraintProvider under test, given a set of facts, results in a specific Score.
      void scores​(org.optaplanner.core.api.score.Score<?> score, String message)
      As defined by scores(Score).
    • Method Detail

      • scores

        default void scores​(org.optaplanner.core.api.score.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​(org.optaplanner.core.api.score.Score<?> score,
                    String message)
        As defined by scores(Score).
        Parameters:
        score - total score calculated for the given set of facts
        message - sometimes null, description of the scenario being asserted
        Throws:
        AssertionError - when the expected score does not match the calculated score