Class SimpleBigDecimalScoreVerifier<Solution_>

    • Constructor Detail

      • SimpleBigDecimalScoreVerifier

        public SimpleBigDecimalScoreVerifier​(SolverFactory<Solution_> solverFactory)
        Parameters:
        solverFactory - never null, the SolverFactory of which you want to test the constraints.
    • Method Detail

      • assertWeight

        public void assertWeight​(String constraintName,
                                 BigDecimal expectedWeight,
                                 Solution_ solution)
        Assert that the constraint of PlanningSolution has the expected weight for that score level.
        Parameters:
        constraintName - never null, the name of the constraint
        expectedWeight - never null, the total weight for all matches of that 1 constraint
        solution - never null, the actual PlanningSolution
      • assertWeight

        public void assertWeight​(String constraintPackage,
                                 String constraintName,
                                 BigDecimal expectedWeight,
                                 Solution_ solution)
        Assert that the constraint of PlanningSolution has the expected weight for that score level.
        Parameters:
        constraintPackage - sometimes null. When null, constraintName for the scoreLevel must be unique.
        constraintName - never null, the name of the constraint
        expectedWeight - never null, the total weight for all matches of that 1 constraint
        solution - never null, the actual PlanningSolution