Hi,

I have downloaded few examples and trying to do a prototype.  But in my
test I have problem.  I am using droll 2.1.


  <rule name="Exclude FLPSX">
    <parameter identifier="fund">
      <class>Fund</class>
    </parameter>
    <java:condition>fund.getFundName().equals("FLPSX")</java:condition>

    <java:condition>fund.getFundPrice() &gt; 10</java:condition>
    <java:consequence>
        fund.setRecommendInclude("NO"); 
        printFund(fund);
    </java:consequence>
  </rule>


junit.framework.AssertionFailedError
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at junit.framework.Assert.assertTrue(Assert.java:27)
        at
com.BusinessRuleTest.testFundInclude(BusinessRuleTest.java:26)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at junit.framework.TestCase.runTest(TestCase.java:154)


FIRE RULES
----------
[ConditionTested: rule=Exclude FLPSX; condition=[Condition:
fund.getFundName().equals("FLPSX")]; passed=false; tuple={[]}]
[ObjectAsserted: handle=[fid:1]; [EMAIL PROTECTED]

Thanks,
Ali...

Reply via email to