Uses of Interface
ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Packages that use SingleConstraintAssertion
Package
Description
-
Uses of SingleConstraintAssertion in ai.timefold.solver.test.api.score.stream
Subinterfaces of SingleConstraintAssertion in ai.timefold.solver.test.api.score.streamMethods in ai.timefold.solver.test.api.score.stream that return SingleConstraintAssertionModifier 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.default @NonNull SingleConstraintAssertionSingleConstraintAssertion.indictsWith(@NonNull Object @NonNull ... indictments) Asserts that theConstraintbeing tested, given a set of facts, results in the given indictments.@NonNull SingleConstraintAssertionSingleConstraintAssertion.indictsWith(@Nullable String message, @NonNull Object @NonNull ... indictments) As defined byindictsWith(Object...).default @NonNull SingleConstraintAssertionSingleConstraintAssertion.indictsWithExactly(@NonNull Object @NonNull ... indictments) Asserts that theConstraintbeing tested, given a set of facts, results in the given indictments and nothing else.@NonNull SingleConstraintAssertionSingleConstraintAssertion.indictsWithExactly(@Nullable String message, @NonNull Object @NonNull ... indictments) As defined byindictsWithExactly(Object...).default @NonNull SingleConstraintAssertionSingleConstraintAssertion.justifiesWith(@NonNull ConstraintJustification @NonNull ... justifications) Asserts that theConstraintbeing tested, given a set of facts, results in a givenConstraintJustification.@NonNull SingleConstraintAssertionSingleConstraintAssertion.justifiesWith(@Nullable String message, @NonNull ConstraintJustification @NonNull ... justifications) As defined byjustifiesWith(ConstraintJustification...).default @NonNull SingleConstraintAssertionSingleConstraintAssertion.justifiesWithExactly(@NonNull ConstraintJustification @NonNull ... justifications) Asserts that theConstraintbeing tested, given a set of facts, results in a givenConstraintJustificationand nothing else.@NonNull SingleConstraintAssertionSingleConstraintAssertion.justifiesWithExactly(@Nullable String message, @NonNull ConstraintJustification @NonNull ... justifications) As defined byjustifiesWithExactly(ConstraintJustification...).ShadowVariableAwareSingleConstraintAssertion.settingAllShadowVariables()The method allows the code under test that uses any type of shadow variables to execute all related listeners and update the planning entities. -
Uses of SingleConstraintAssertion in ai.timefold.solver.test.impl.score.stream
Classes in ai.timefold.solver.test.impl.score.stream that implement SingleConstraintAssertionModifier and TypeClassDescriptionclassAbstractSingleConstraintAssertion<Solution_,Score_ extends Score<Score_>> final classDefaultShadowVariableAwareSingleConstraintAssertion<Solution_,Score_ extends Score<Score_>> final classDefaultSingleConstraintAssertion<Solution_,Score_ extends Score<Score_>> Methods in ai.timefold.solver.test.impl.score.stream that return SingleConstraintAssertionModifier and TypeMethodDescription@NonNull SingleConstraintAssertionAbstractSingleConstraintAssertion.indictsWith(@Nullable String message, @NonNull Object @NonNull ... indictments) @NonNull SingleConstraintAssertionAbstractSingleConstraintAssertion.indictsWithExactly(@Nullable String message, @NonNull Object @NonNull ... indictments) @NonNull SingleConstraintAssertionAbstractSingleConstraintAssertion.justifiesWith(String message, @NonNull ConstraintJustification @NonNull ... justifications) @NonNull SingleConstraintAssertionAbstractSingleConstraintAssertion.justifiesWithExactly(@Nullable String message, @NonNull ConstraintJustification @NonNull ... justifications) DefaultShadowVariableAwareSingleConstraintAssertion.settingAllShadowVariables()