Interface SingleConstraintVerification<Solution_>
- All Known Implementing Classes:
DefaultSingleConstraintVerification
public interface SingleConstraintVerification<Solution_>
-
Method Summary
Modifier and TypeMethodDescription@NonNull SingleConstraintAssertionIf the code under test usesPlanningListVariable, the facts provided to this method need to meet either one of the following criteria: It needs to include both the planning entity and the planning value(s), and the planning entity needs to have its list variable correctly filled. The planning values need to have theirInverseRelationShadowVariableset to the entity with the relevant list variable. In case none of these are met, the values will be reported as unassigned and therefore will be filtered out by theConstraintFactory.forEach(Class)check.givenSolution(@NonNull Solution_ solution)
-
Method Details
-
given
If the code under test usesPlanningListVariable, the facts provided to this method need to meet either one of the following criteria:- It needs to include both the planning entity and the planning value(s), and the planning entity needs to have its list variable correctly filled.
- The planning values need to have their
InverseRelationShadowVariableset to the entity with the relevant list variable.
ConstraintFactory.forEach(Class)check.ConstraintFactory.forEachIncludingUnassigned(Class)will include them regardless.- Parameters:
facts- at least one
-
givenSolution
-