Use non-deprecated SingleConstraintAssertion methods

Apache 2.0

Use penalizesBy/rewardsWith(String, int) instead of penalizesBy/rewardsWith(int, String) on SingleConstraintAssertion tests.

ai.timefold.solver.migration.v8.SingleConstraintAssertionMethodsRecipe
mod run . --recipe=ai.timefold.solver.migration.v8.SingleConstraintAssertionMethodsRecipe

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Reorder method arguments
  2. Reorder method arguments
  3. Reorder method arguments