<br> Yes, this should not be raising errors. <br><br> Michael,<br><br> What was the conclusion of the discussion about null handling?<br><br> Thanks,<br> Edson<br><br><br><div><span class="gmail_quote">2007/3/28, wasabifan <
<a href="mailto:bryan.rickman@kewill.com">bryan.rickman@kewill.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>class MyObject {
<br> private Integer used;<br> private Integer notUsed;<br> // public setters/getters...<br>}<br><br>rule "1"<br> when<br> MyObject(used == 1)<br> then<br> // do something<br>end<br><br>rule "2"
<br> when<br> UnrelatedObject(data == 5)<br> MyObject(notUsed == 2)<br> then<br> // do something else<br>end<br><br>Basically, I am trying to create JUnit test cases to test each of the rules<br>functionality. So I would instantiate and object, set the required data to
<br>fire a rule, assert the object and fire all rules. So when setting<br>MyObject.used = 1, then asserting that fact...it appears that rule 2 would<br>complain that notUsed is null (even though I do not have an asserted fact
<br>where UnrelatedObject(data == 5).<br><br>Does this make sense? I know this is sort of pseudo code thrown together<br>quickly, but I think that explains what I was experiencing. If not, I can<br>go back to get some of the actual code, but that would be much longer.
<br><br>Thanks,<br>Bryan<br><br><br>Edson Tirelli-3 wrote:<br>><br>> Can you please provide one example for us to understand better the<br>> case?<br>><br><br>--<br>View this message in context: <a href="http://www.nabble.com/comparisons-on-Java-primitive-wrapper-class-types-tf3481733.html#a9721787">
http://www.nabble.com/comparisons-on-Java-primitive-wrapper-class-types-tf3481733.html#a9721787</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________
<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3124-6000<br> Mobile: +55 11 9218-4151<br> JBoss, a division of Red Hat @
<a href="http://www.jboss.com">www.jboss.com</a>