Index
All Classes and Interfaces|All Packages
A
- addEntity(Entity, Consumer<Entity>) - Method in class ai.timefold.solver.test.api.solver.change.MockProblemChangeDirector
- addProblemFact(ProblemFact, Consumer<ProblemFact>) - Method in class ai.timefold.solver.test.api.solver.change.MockProblemChangeDirector
- ai.timefold.solver.test.api.score.stream - package ai.timefold.solver.test.api.score.stream
- ai.timefold.solver.test.api.solver.change - package ai.timefold.solver.test.api.solver.change
- ai.timefold.solver.test.impl.score.stream - package ai.timefold.solver.test.impl.score.stream
- assertCorrectArguments(Object...) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintVerification
B
- build(ConstraintProvider_, Class<Solution_>, Class<?>...) - Static method in interface ai.timefold.solver.test.api.score.stream.ConstraintVerifier
-
Entry point to the API.
C
- changeProblemProperty(EntityOrProblemFact, Consumer<EntityOrProblemFact>) - Method in class ai.timefold.solver.test.api.solver.change.MockProblemChangeDirector
- changeVariable(Entity, String, Consumer<Entity>) - Method in class ai.timefold.solver.test.api.solver.change.MockProblemChangeDirector
- ConstraintVerifier<ConstraintProvider_ extends ai.timefold.solver.core.api.score.stream.ConstraintProvider,
Solution_> - Interface in ai.timefold.solver.test.api.score.stream -
Implementations must be thread-safe, in order to enable parallel test execution.
- create(SolverConfig) - Static method in interface ai.timefold.solver.test.api.score.stream.ConstraintVerifier
-
Uses a
SolverConfigto build aConstraintVerifier.
D
- DefaultConstraintVerifier<ConstraintProvider_ extends ai.timefold.solver.core.api.score.stream.ConstraintProvider,
Solution_, Score_ extends ai.timefold.solver.core.api.score.Score<Score_>> - Class in ai.timefold.solver.test.impl.score.stream - DefaultConstraintVerifier(ConstraintProvider_, SolutionDescriptor<Solution_>) - Constructor for class ai.timefold.solver.test.impl.score.stream.DefaultConstraintVerifier
- DefaultMultiConstraintAssertion<Score_ extends ai.timefold.solver.core.api.score.Score<Score_>> - Class in ai.timefold.solver.test.impl.score.stream
- DefaultMultiConstraintVerification<Solution_,
Score_ extends ai.timefold.solver.core.api.score.Score<Score_>> - Class in ai.timefold.solver.test.impl.score.stream - DefaultSingleConstraintAssertion<Solution_,
Score_ extends ai.timefold.solver.core.api.score.Score<Score_>> - Class in ai.timefold.solver.test.impl.score.stream - DefaultSingleConstraintVerification<Solution_,
Score_ extends ai.timefold.solver.core.api.score.Score<Score_>> - Class in ai.timefold.solver.test.impl.score.stream
G
- getConstraintStreamImplType() - Method in class ai.timefold.solver.test.impl.score.stream.DefaultConstraintVerifier
- given(Object...) - Method in interface ai.timefold.solver.test.api.score.stream.MultiConstraintVerification
-
As defined by
SingleConstraintVerification.given(Object...). - given(Object...) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintVerification
- given(Object...) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultMultiConstraintVerification
- given(Object...) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintVerification
- givenSolution(Solution_) - Method in interface ai.timefold.solver.test.api.score.stream.MultiConstraintVerification
-
As defined by
SingleConstraintVerification.givenSolution(Object). - givenSolution(Solution_) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintVerification
- givenSolution(Solution_) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultMultiConstraintVerification
- givenSolution(Solution_) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintVerification
L
- LOGGER - Variable in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintVerification
- LookUpMockBuilder(Object) - Constructor for class ai.timefold.solver.test.api.solver.change.MockProblemChangeDirector.LookUpMockBuilder
- lookUpWorkingObject(EntityOrProblemFact) - Method in class ai.timefold.solver.test.api.solver.change.MockProblemChangeDirector
-
If the look-up result has been provided by a
MockProblemChangeDirector.whenLookingUp(Object)call, returns the defined object. - lookUpWorkingObjectOrFail(EntityOrProblemFact) - Method in class ai.timefold.solver.test.api.solver.change.MockProblemChangeDirector
-
If the look-up result has been provided by a
MockProblemChangeDirector.whenLookingUp(Object)call, returns the defined object.
M
- MockProblemChangeDirector - Class in ai.timefold.solver.test.api.solver.change
-
Use for unit-testing
ProblemChanges. - MockProblemChangeDirector() - Constructor for class ai.timefold.solver.test.api.solver.change.MockProblemChangeDirector
- MockProblemChangeDirector.LookUpMockBuilder - Class in ai.timefold.solver.test.api.solver.change
- MultiConstraintAssertion - Interface in ai.timefold.solver.test.api.score.stream
- MultiConstraintVerification<Solution_> - Interface in ai.timefold.solver.test.api.score.stream
P
- penalizes() - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
Asserts that the
Constraintbeing tested, given a set of facts, results in any number of penalties. - penalizes(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
Asserts that the
Constraintbeing tested, given a set of facts, results in a given number of penalties. - penalizes(long, String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.penalizes(long). - penalizes(long, String) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
- penalizes(String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.penalizes(). - penalizes(String) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
- penalizesBy(int) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
Asserts that the
Constraintbeing tested, given a set of facts, results in a specific penalty. - penalizesBy(int, String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.penalizesBy(int). - penalizesBy(int, String) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
- penalizesBy(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.penalizesBy(int). - penalizesBy(long, String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.penalizesBy(int). - penalizesBy(long, String) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
- penalizesBy(BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.penalizesBy(int). - penalizesBy(BigDecimal, String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.penalizesBy(int). - penalizesBy(BigDecimal, String) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
R
- removeEntity(Entity, Consumer<Entity>) - Method in class ai.timefold.solver.test.api.solver.change.MockProblemChangeDirector
- removeProblemFact(ProblemFact, Consumer<ProblemFact>) - Method in class ai.timefold.solver.test.api.solver.change.MockProblemChangeDirector
- rewards() - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
Asserts that the
Constraintbeing tested, given a set of facts, results in any number of rewards. - rewards(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
Asserts that the
Constraintbeing tested, given a set of facts, results in a given number of rewards. - rewards(long, String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.rewards(long). - rewards(long, String) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
- rewards(String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.rewards(). - rewards(String) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
- rewardsWith(int) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
Asserts that the
Constraintbeing tested, given a set of facts, results in a specific reward. - rewardsWith(int, String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.rewardsWith(int). - rewardsWith(int, String) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
- rewardsWith(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.rewardsWith(int). - rewardsWith(long, String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.rewardsWith(int). - rewardsWith(long, String) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
- rewardsWith(BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.rewardsWith(int). - rewardsWith(BigDecimal, String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
-
As defined by
SingleConstraintAssertion.rewardsWith(int). - rewardsWith(BigDecimal, String) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
S
- scoreDirectorFactory - Variable in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintVerification
- scores(Score<?>) - Method in interface ai.timefold.solver.test.api.score.stream.MultiConstraintAssertion
-
Asserts that the
ConstraintProviderunder test, given a set of facts, results in a specificScore. - scores(Score<?>, String) - Method in interface ai.timefold.solver.test.api.score.stream.MultiConstraintAssertion
-
As defined by
MultiConstraintAssertion.scores(Score). - scores(Score<?>, String) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultMultiConstraintAssertion
- sessionBasedAssertionBuilder - Variable in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintVerification
- SingleConstraintAssertion - Interface in ai.timefold.solver.test.api.score.stream
- SingleConstraintVerification<Solution_> - Interface in ai.timefold.solver.test.api.score.stream
T
- thenReturn(Object) - Method in class ai.timefold.solver.test.api.solver.change.MockProblemChangeDirector.LookUpMockBuilder
U
- updateShadowVariables() - Method in class ai.timefold.solver.test.api.solver.change.MockProblemChangeDirector
V
- verifyThat() - Method in interface ai.timefold.solver.test.api.score.stream.ConstraintVerifier
-
Creates a constraint verifier for all constraints of the
ConstraintProvider. - verifyThat() - Method in class ai.timefold.solver.test.impl.score.stream.DefaultConstraintVerifier
- verifyThat(BiFunction<ConstraintProvider_, ConstraintFactory, Constraint>) - Method in interface ai.timefold.solver.test.api.score.stream.ConstraintVerifier
-
Creates a constraint verifier for a given
Constraintof theConstraintProvider. - verifyThat(BiFunction<ConstraintProvider_, ConstraintFactory, Constraint>) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultConstraintVerifier
W
- whenLookingUp(Object) - Method in class ai.timefold.solver.test.api.solver.change.MockProblemChangeDirector
-
Defines what
MockProblemChangeDirector.lookUpWorkingObjectOrFail(Object)returns. - withConstraintStreamImplType(ConstraintStreamImplType) - Method in interface ai.timefold.solver.test.api.score.stream.ConstraintVerifier
-
All subsequent calls to
ConstraintVerifier.verifyThat(BiFunction)andConstraintVerifier.verifyThat()use the givenConstraintStreamImplType. - withConstraintStreamImplType(ConstraintStreamImplType) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultConstraintVerifier
All Classes and Interfaces|All Packages