Class TestGenCorruptedScoreReproducer
- java.lang.Object
-
- org.optaplanner.constraint.drl.testgen.reproducer.TestGenCorruptedScoreReproducer
-
- All Implemented Interfaces:
EventListener,TestGenOriginalProblemReproducer,TestGenKieSessionListener
public class TestGenCorruptedScoreReproducer extends Object implements TestGenOriginalProblemReproducer, TestGenKieSessionListener
Detects corrupted score for the given journal. It should behave equally toAbstractScoreDirector.assertWorkingScoreFromScratch(Score, Object).
-
-
Constructor Summary
Constructors Constructor Description TestGenCorruptedScoreReproducer(String analysis, TestGenDrlScoreDirector<?,?> scoreDirector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterFireAllRules(org.kie.api.runtime.KieSession kieSession, TestGenKieSessionJournal journal, TestGenKieSessionFireAllRules fire)voidassertReproducible(TestGenKieSessionJournal journal, String contextDescription)Throws exception if the original problem is not reproducible with the given journal.booleanisReproducible(TestGenKieSessionJournal journal)Replay the journal and decide if the original problem is reproducible.StringtoString()
-
-
-
Constructor Detail
-
TestGenCorruptedScoreReproducer
public TestGenCorruptedScoreReproducer(String analysis, TestGenDrlScoreDirector<?,?> scoreDirector)
-
-
Method Detail
-
assertReproducible
public void assertReproducible(TestGenKieSessionJournal journal, String contextDescription)
Description copied from interface:TestGenOriginalProblemReproducerThrows exception if the original problem is not reproducible with the given journal.- Specified by:
assertReproduciblein interfaceTestGenOriginalProblemReproducer- Parameters:
journal- journal tested for the original problemcontextDescription- describes the context in which the problem should be reproducible
-
isReproducible
public boolean isReproducible(TestGenKieSessionJournal journal)
Description copied from interface:TestGenOriginalProblemReproducerReplay the journal and decide if the original problem is reproducible.- Specified by:
isReproduciblein interfaceTestGenOriginalProblemReproducer- Parameters:
journal- journal tested for the original problem- Returns:
- true if replaying the journal leads to the original problem
-
afterFireAllRules
public void afterFireAllRules(org.kie.api.runtime.KieSession kieSession, TestGenKieSessionJournal journal, TestGenKieSessionFireAllRules fire)- Specified by:
afterFireAllRulesin interfaceTestGenKieSessionListener
-
-