Class TestingEventListener
java.lang.Object
org.drools.compiler.testframework.TestingEventListener
- All Implemented Interfaces:
EventListener,AgendaEventListener
This tracks what is happening in the engine with rule activations and firings.
It also allows you to choose what to include/exclude from firing.
If a rule is not allowed to fire, it will still be counted as an activation.
If it is allowed to fire, then it will only be counted after the activation is fired.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidgetAgendaFilter(HashSet<String> ruleNames, boolean inclusive) String[]Return a list of the rules fired, for display purposes.voidvoidmatchCreated(MatchCreatedEvent event)
-
Constructor Details
-
TestingEventListener
public TestingEventListener()
-
-
Method Details
-
getAgendaFilter
-
matchCancelled
- Specified by:
matchCancelledin interfaceAgendaEventListener
-
matchCreated
- Specified by:
matchCreatedin interfaceAgendaEventListener
-
afterMatchFired
- Specified by:
afterMatchFiredin interfaceAgendaEventListener
-
agendaGroupPopped
- Specified by:
agendaGroupPoppedin interfaceAgendaEventListener
-
agendaGroupPushed
- Specified by:
agendaGroupPushedin interfaceAgendaEventListener
-
beforeMatchFired
- Specified by:
beforeMatchFiredin interfaceAgendaEventListener
-
getFiringCounts
- Returns:
- A map of the number of times a given rule "fired". (of course in reality the side effect of its firing may have been nilled out).
-
getRulesFiredSummary
Return a list of the rules fired, for display purposes. -
afterRuleFlowGroupActivated
- Specified by:
afterRuleFlowGroupActivatedin interfaceAgendaEventListener
-
afterRuleFlowGroupDeactivated
- Specified by:
afterRuleFlowGroupDeactivatedin interfaceAgendaEventListener
-
beforeRuleFlowGroupActivated
- Specified by:
beforeRuleFlowGroupActivatedin interfaceAgendaEventListener
-
beforeRuleFlowGroupDeactivated
- Specified by:
beforeRuleFlowGroupDeactivatedin interfaceAgendaEventListener
-