Actually this appears to happen when I'm asserting into memory.
[testng] org.drools.RuntimeDroolsException: java.lang.NullPointerException
[testng] at
org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:75)
[testng] at
org.drools.reteoo.EvalConditionNode.assertTuple(EvalConditionNode.java:141)
[testng] at
org.drools.reteoo.CompositeTupleSinkAdapter.propagateAssertTuple(CompositeTupleSinkAdap
.java:30)
[testng] at org.drools.reteoo.JoinNode.assertTuple(JoinNode.java:120)
[testng] at
org.drools.reteoo.SingleTupleSinkAdapter.createAndPropagateAssertTuple(SingleTupleSinkA
ter.java:55)
[testng] at
org.drools.reteoo.LeftInputAdapterNode.assertObject(LeftInputAdapterNode.java:131)
[testng] at
org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter
va:20)
[testng] at
org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:160)
[testng] at org.drools.reteoo.Rete.assertObject(Rete.java:176)
[testng] at
org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:196)
[testng] at
org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java:70)
[testng] at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:854)
[testng] at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:826)
[testng] at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:627)
samd wrote:
I'm seeing where I do something like this:
@Test( groups = { "submissionTests" } )
public void ifBoWarnOfValidationRules()
{
...
workingMemory.fireAllRules( new RuleNameStartsWithAgendaFilter(
"FIFTEEN" ) );
}
Other rules that do not begin with FIFTEEN also fire. It is really
annoying since it results in my testcases failing.
--
View this message in context:
http://www.nabble.com/Why-can%27t-I-filter-in-my-testcases--tp19059402p19...
Sent from the drools - user mailing list archive at
Nabble.com.