-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
-
2020 Week 10-12 (from Mar 2), 2020 Week 13-15 (from Mar 23), 2020 Week 16-18 (from Apr 13)
-
5
-
NEW
-
NEW
Reqs
- ScoreVerifier must ignore constraintWeight
- Only for ConstraintStreams
- DRL and EasySC will cause leaky abstraction:
- EasySC doesn’t have justification
- DRL hardcodes constraint names
- DRL and EasySC will cause leaky abstraction:
class MyConstraintProvider extends … { Constraint[] createConstraints() { ….} Constraint teacherConflict(ConstraintFactory factory) { return factory.from(Lecture.class).join(...).penalize(); } Constraint roomConflict(ConstraintFactory factory) { return factory.from(Lecture.class).join(...).penalize(); } } class MyConstraintProviderTest { @Test public void teacherConflict() { ScoreVerifier.of(MyConstraintProvider::teacherConflict) .withData(Ann, Beth, Carl) .returns(Ann, Beth); .returns(Ann matchWeight == 4, Beth matchWeight == 7 } }