public final class SingleConstraintAssertion<Solution_> extends AbstractAssertion<Solution_,SingleConstraintAssertion<Solution_>,SingleConstraintVerifier<Solution_>>
Modifier and Type | Method and Description |
---|---|
void |
hasNoImpact()
As defined by
hasNoImpact(String) with a null message. |
void |
hasNoImpact(String message)
Asserts that the
Constraint under test, given a set of facts, results in neither penalty nor reward. |
void |
penalizesBy(BigDecimal matchWeightTotal)
As defined by
penalizesBy(int, String) with a null message. |
void |
penalizesBy(BigDecimal matchWeightTotal,
String message)
As defined by
penalizesBy(int, String) . |
void |
penalizesBy(int matchWeightTotal)
As defined by
penalizesBy(int, String) with a null message. |
void |
penalizesBy(int matchWeightTotal,
String message)
Asserts that the
Constraint under test, given a set of facts, results in a specific penalty. |
void |
penalizesBy(long matchWeightTotal)
As defined by
penalizesBy(int, String) with a null message. |
void |
penalizesBy(long matchWeightTotal,
String message)
As defined by
penalizesBy(int, String) . |
void |
rewardsWith(BigDecimal matchWeightTotal)
As defined by
rewardsWith(int, String) with a null message. |
void |
rewardsWith(BigDecimal matchWeightTotal,
String message)
As defined by
rewardsWith(int, String) . |
void |
rewardsWith(int matchWeightTotal)
As defined by
rewardsWith(int, String) with a null message. |
void |
rewardsWith(int matchWeightTotal,
String message)
Asserts that the
Constraint under test, given a set of facts, results in a specific reward. |
void |
rewardsWith(long matchWeightTotal)
As defined by
rewardsWith(int, String) with a null message. |
void |
rewardsWith(long matchWeightTotal,
String message)
As defined by
rewardsWith(int, String) . |
getParentConstraintVerifier
public void penalizesBy(int matchWeightTotal, String message)
Constraint
under test, given a set of facts, results in a specific penalty.matchWeightTotal
- sum of weights of constraint matches from applying the given facts to the constraintmessage
- optional description of the scenario being assertedAssertionError
- when the expected penalty is not observedpublic void penalizesBy(long matchWeightTotal, String message)
penalizesBy(int, String)
.public void penalizesBy(BigDecimal matchWeightTotal, String message)
penalizesBy(int, String)
.public void penalizesBy(int matchWeightTotal)
penalizesBy(int, String)
with a null message.public void penalizesBy(long matchWeightTotal)
penalizesBy(int, String)
with a null message.public void penalizesBy(BigDecimal matchWeightTotal)
penalizesBy(int, String)
with a null message.public void rewardsWith(int matchWeightTotal, String message)
Constraint
under test, given a set of facts, results in a specific reward.matchWeightTotal
- sum of weights of constraint matches from applying the given facts to the constraintmessage
- optional description of the scenario being assertedAssertionError
- when the expected reward is not observedpublic void rewardsWith(long matchWeightTotal, String message)
rewardsWith(int, String)
.public void rewardsWith(BigDecimal matchWeightTotal, String message)
rewardsWith(int, String)
.public void rewardsWith(int matchWeightTotal)
rewardsWith(int, String)
with a null message.public void rewardsWith(long matchWeightTotal)
rewardsWith(int, String)
with a null message.public void rewardsWith(BigDecimal matchWeightTotal)
rewardsWith(int, String)
with a null message.public void hasNoImpact(String message)
Constraint
under test, given a set of facts, results in neither penalty nor reward.message
- optional description of the scenario being assertedAssertionError
- when either a penalty or a reward is observedpublic void hasNoImpact()
hasNoImpact(String)
with a null message.Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.