org.drools.compiler.testframework
Class RuleCoverageListener
java.lang.Object
org.drools.compiler.testframework.RuleCoverageListener
- All Implemented Interfaces:
- EventListener, org.drools.core.event.AgendaEventListener
public class RuleCoverageListener
- extends Object
- implements org.drools.core.event.AgendaEventListener
Measure the rule coverage.
|
Method Summary |
void |
activationCancelled(org.drools.core.event.ActivationCancelledEvent event,
org.drools.core.WorkingMemory workingMemory)
|
void |
activationCreated(org.drools.core.event.ActivationCreatedEvent event,
org.drools.core.WorkingMemory workingMemory)
|
void |
afterActivationFired(org.drools.core.event.AfterActivationFiredEvent event,
org.drools.core.WorkingMemory workingMemory)
|
void |
afterRuleFlowGroupActivated(org.drools.core.event.RuleFlowGroupActivatedEvent event,
org.drools.core.WorkingMemory workingMemory)
|
void |
afterRuleFlowGroupDeactivated(org.drools.core.event.RuleFlowGroupDeactivatedEvent event,
org.drools.core.WorkingMemory workingMemory)
|
void |
agendaGroupPopped(org.drools.core.event.AgendaGroupPoppedEvent event,
org.drools.core.WorkingMemory workingMemory)
|
void |
agendaGroupPushed(org.drools.core.event.AgendaGroupPushedEvent event,
org.drools.core.WorkingMemory workingMemory)
|
void |
beforeActivationFired(org.drools.core.event.BeforeActivationFiredEvent event,
org.drools.core.WorkingMemory workingMemory)
|
void |
beforeRuleFlowGroupActivated(org.drools.core.event.RuleFlowGroupActivatedEvent event,
org.drools.core.WorkingMemory workingMemory)
|
void |
beforeRuleFlowGroupDeactivated(org.drools.core.event.RuleFlowGroupDeactivatedEvent event,
org.drools.core.WorkingMemory workingMemory)
|
int |
getPercentCovered()
|
String[] |
getUnfiredRules()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleCoverageListener
public RuleCoverageListener(HashSet<String> expectedRuleNames)
- Pass in the expected rules to fire.
- Parameters:
expectedRuleNames -
activationCancelled
public void activationCancelled(org.drools.core.event.ActivationCancelledEvent event,
org.drools.core.WorkingMemory workingMemory)
- Specified by:
activationCancelled in interface org.drools.core.event.AgendaEventListener
activationCreated
public void activationCreated(org.drools.core.event.ActivationCreatedEvent event,
org.drools.core.WorkingMemory workingMemory)
- Specified by:
activationCreated in interface org.drools.core.event.AgendaEventListener
afterActivationFired
public void afterActivationFired(org.drools.core.event.AfterActivationFiredEvent event,
org.drools.core.WorkingMemory workingMemory)
- Specified by:
afterActivationFired in interface org.drools.core.event.AgendaEventListener
agendaGroupPopped
public void agendaGroupPopped(org.drools.core.event.AgendaGroupPoppedEvent event,
org.drools.core.WorkingMemory workingMemory)
- Specified by:
agendaGroupPopped in interface org.drools.core.event.AgendaEventListener
agendaGroupPushed
public void agendaGroupPushed(org.drools.core.event.AgendaGroupPushedEvent event,
org.drools.core.WorkingMemory workingMemory)
- Specified by:
agendaGroupPushed in interface org.drools.core.event.AgendaEventListener
beforeActivationFired
public void beforeActivationFired(org.drools.core.event.BeforeActivationFiredEvent event,
org.drools.core.WorkingMemory workingMemory)
- Specified by:
beforeActivationFired in interface org.drools.core.event.AgendaEventListener
getUnfiredRules
public String[] getUnfiredRules()
- Returns:
- A set of rules that were not fired.
getPercentCovered
public int getPercentCovered()
afterRuleFlowGroupActivated
public void afterRuleFlowGroupActivated(org.drools.core.event.RuleFlowGroupActivatedEvent event,
org.drools.core.WorkingMemory workingMemory)
- Specified by:
afterRuleFlowGroupActivated in interface org.drools.core.event.AgendaEventListener
afterRuleFlowGroupDeactivated
public void afterRuleFlowGroupDeactivated(org.drools.core.event.RuleFlowGroupDeactivatedEvent event,
org.drools.core.WorkingMemory workingMemory)
- Specified by:
afterRuleFlowGroupDeactivated in interface org.drools.core.event.AgendaEventListener
beforeRuleFlowGroupActivated
public void beforeRuleFlowGroupActivated(org.drools.core.event.RuleFlowGroupActivatedEvent event,
org.drools.core.WorkingMemory workingMemory)
- Specified by:
beforeRuleFlowGroupActivated in interface org.drools.core.event.AgendaEventListener
beforeRuleFlowGroupDeactivated
public void beforeRuleFlowGroupDeactivated(org.drools.core.event.RuleFlowGroupDeactivatedEvent event,
org.drools.core.WorkingMemory workingMemory)
- Specified by:
beforeRuleFlowGroupDeactivated in interface org.drools.core.event.AgendaEventListener
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.