Class TestGenDroolsExceptionReproducer
- java.lang.Object
- 
- org.optaplanner.constraint.drl.testgen.reproducer.TestGenDroolsExceptionReproducer
 
- 
- All Implemented Interfaces:
- TestGenOriginalProblemReproducer
 
 public class TestGenDroolsExceptionReproducer extends Object implements TestGenOriginalProblemReproducer Reproduces the exception originally thrown by Drools during a call to KIE session.
- 
- 
Constructor SummaryConstructors Constructor Description TestGenDroolsExceptionReproducer(RuntimeException originalException, TestGenDrlScoreDirector<?,?> scoreDirector)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description 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- 
TestGenDroolsExceptionReproducerpublic TestGenDroolsExceptionReproducer(RuntimeException originalException, TestGenDrlScoreDirector<?,?> scoreDirector) 
 
- 
 - 
Method Detail- 
isReproduciblepublic boolean isReproducible(TestGenKieSessionJournal journal) Description copied from interface:TestGenOriginalProblemReproducerReplay the journal and decide if the original problem is reproducible.- Specified by:
- isReproduciblein interface- TestGenOriginalProblemReproducer
- Parameters:
- journal- journal tested for the original problem
- Returns:
- true if replaying the journal leads to the original problem
 
 - 
assertReproduciblepublic 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 interface- TestGenOriginalProblemReproducer
- Parameters:
- journal- journal tested for the original problem
- contextDescription- describes the context in which the problem should be reproducible
 
 
- 
 
-