Index

A B C D G I J L M P R S T U V W 
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.DefaultMultiConstraintVerification
 

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 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 SolverConfig to build a ConstraintVerifier.

D

DefaultConstraintVerifier<ConstraintProvider_ extends ConstraintProvider,Solution_,Score_ extends 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 Score<Score_>> - Class in ai.timefold.solver.test.impl.score.stream
 
DefaultMultiConstraintVerification<Solution_,Score_ extends Score<Score_>> - Class in ai.timefold.solver.test.impl.score.stream
 
DefaultSingleConstraintAssertion<Solution_,Score_ extends Score<Score_>> - Class in ai.timefold.solver.test.impl.score.stream
 
DefaultSingleConstraintVerification<Solution_,Score_ extends 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
given(Object...) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintVerification
If the code under test uses PlanningListVariable, 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 InverseRelationShadowVariable set 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 the ConstraintFactory.forEach(Class) check.
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
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
 

I

indictsWith(Object...) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Asserts that the Constraint being tested, given a set of facts, results in the given indictments.
indictsWith(String, Object...) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
indictsWith(String, Object...) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
indictsWithExactly(Object...) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Asserts that the Constraint being tested, given a set of facts, results in the given indictments and nothing else.
indictsWithExactly(String, Object...) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
indictsWithExactly(String, Object...) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 

J

justifiesWith(ConstraintJustification...) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Asserts that the Constraint being tested, given a set of facts, results in a given ConstraintJustification.
justifiesWith(String, ConstraintJustification...) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
justifiesWith(String, ConstraintJustification...) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
justifiesWithExactly(ConstraintJustification...) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Asserts that the Constraint being tested, given a set of facts, results in a given ConstraintJustification and nothing else.
justifiesWithExactly(String, ConstraintJustification...) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
justifiesWithExactly(String, ConstraintJustification...) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 

L

LOGGER - Variable in class ai.timefold.solver.test.impl.score.stream.DefaultMultiConstraintVerification
 
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 Constraint being 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 Constraint being 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
Deprecated, for removal: This API element is subject to removal in a future version.
penalizes(String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizes(String) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
penalizes(String, long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizes(String, long) - 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 Constraint being 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
Deprecated, for removal: This API element is subject to removal in a future version.
penalizesBy(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesBy(long, String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Deprecated, for removal: This API element is subject to removal in a future version.
penalizesBy(String, int) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesBy(String, int) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
penalizesBy(String, long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesBy(String, long) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
penalizesBy(String, BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesBy(String, BigDecimal) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
penalizesBy(BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesBy(BigDecimal, String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Deprecated, for removal: This API element is subject to removal in a future version.
penalizesByLessThan(int) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Asserts that the Constraint being tested, given a set of facts, results in a specific penalty smaller than given.
penalizesByLessThan(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesByLessThan(String, int) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesByLessThan(String, int) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
penalizesByLessThan(String, long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesByLessThan(String, long) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
penalizesByLessThan(String, BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesByLessThan(String, BigDecimal) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
penalizesByLessThan(BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesByMoreThan(int) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Asserts that the Constraint being tested, given a set of facts, results in a specific penalty larger than given.
penalizesByMoreThan(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesByMoreThan(String, int) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesByMoreThan(String, int) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
penalizesByMoreThan(String, long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesByMoreThan(String, long) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
penalizesByMoreThan(String, BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesByMoreThan(String, BigDecimal) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
penalizesByMoreThan(BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesLessThan(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Asserts that the Constraint being tested, given a set of facts, results in a number of rewards smaller than given.
penalizesLessThan(String, long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesLessThan(String, long) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
penalizesMoreThan(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Asserts that the Constraint being tested, given a set of facts, results in a number of rewards larger than given.
penalizesMoreThan(String, long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
penalizesMoreThan(String, long) - 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 Constraint being 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 Constraint being 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
Deprecated, for removal: This API element is subject to removal in a future version.
rewards(String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewards(String) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
rewards(String, long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewards(String, long) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
rewardsLessThan(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Asserts that the Constraint being tested, given a set of facts, results in a number of rewards smaller than given.
rewardsLessThan(String, long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsLessThan(String, long) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
rewardsMoreThan(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Asserts that the Constraint being tested, given a set of facts, results in a number of rewards larger than given.
rewardsMoreThan(String, long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsMoreThan(String, long) - 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 Constraint being 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
Deprecated, for removal: This API element is subject to removal in a future version.
rewardsWith(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWith(long, String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Deprecated, for removal: This API element is subject to removal in a future version.
rewardsWith(String, int) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWith(String, int) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
rewardsWith(String, long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWith(String, long) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
rewardsWith(String, BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWith(String, BigDecimal) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
rewardsWith(BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWith(BigDecimal, String) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Deprecated, for removal: This API element is subject to removal in a future version.
rewardsWithLessThan(int) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Asserts that the Constraint being tested, given a set of facts, results in a specific reward smaller than given.
rewardsWithLessThan(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWithLessThan(String, int) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWithLessThan(String, int) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
rewardsWithLessThan(String, long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWithLessThan(String, long) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
rewardsWithLessThan(String, BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWithLessThan(String, BigDecimal) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
rewardsWithLessThan(BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWithMoreThan(int) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
Asserts that the Constraint being tested, given a set of facts, results in a specific reward larger than given.
rewardsWithMoreThan(long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWithMoreThan(String, int) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWithMoreThan(String, int) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
rewardsWithMoreThan(String, long) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWithMoreThan(String, long) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
rewardsWithMoreThan(String, BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
rewardsWithMoreThan(String, BigDecimal) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultSingleConstraintAssertion
 
rewardsWithMoreThan(BigDecimal) - Method in interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion

S

scoreDirectorFactory - Variable in class ai.timefold.solver.test.impl.score.stream.DefaultMultiConstraintVerification
 
scores(Score<?>) - Method in interface ai.timefold.solver.test.api.score.stream.MultiConstraintAssertion
Asserts that the ConstraintProvider under test, given a set of facts, results in a specific Score.
scores(Score<?>, String) - Method in interface ai.timefold.solver.test.api.score.stream.MultiConstraintAssertion
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.DefaultMultiConstraintVerification
 
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 Constraint of the ConstraintProvider.
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
withConstraintStreamImplType(ConstraintStreamImplType) - Method in interface ai.timefold.solver.test.api.score.stream.ConstraintVerifier
withConstraintStreamImplType(ConstraintStreamImplType) - Method in class ai.timefold.solver.test.impl.score.stream.DefaultConstraintVerifier
 
A B C D G I J L M P R S T U V W 
All Classes and Interfaces|All Packages