Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-806

optaplanner-test: scoreVerifier.assertWeight should verify if rule exists

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • 7.0.0.CR3
    • optaplanner-test
    • NEW
    • NEW

    Description

      This should not fail:

      scoreVerifier.assertHardWeight("requiredCpuPowerTotal", 0, solution);
      
      rule "requiredCpuPowerTotal" when ... then ... end
      

      This should fail:

      scoreVerifier.assertHardWeight("requiredCpuPowerTotal", 0, solution);
      
      rule "differentNameThanRequiredCpuPowerTotal" when ... then ... end
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: