Hi,
Please help me out in using 'contains'
My class is:
public static class arrayCollection {
ArrayList<String> arrayList;
arrayCollection(){
arrayList = new ArrayList<String>();
arrayList .add("abc" );
arrayList.add(" def");
//System.out.println("Initial size of al: " + arrayList.size());
}
public ArrayList getArrayList(){
return this.arrayList ;
}
}And My drl file is
rule "contains check"
when
arrayCollection(arrayList contains "abc")
then
System.out.println("contains works" );
EndWhen I created an instance of arrayCollection and asserted, "contains check" rule is not printing "contains working"
Can anyone tell me the reasonThnx,
Sandeep
(080) 2601 3080
--
Steven Williams
Supervising Consultant
Object Consulting
Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
[EMAIL PROTECTED]
www.objectconsulting.com.au
consulting | development | training | support
our experience makes the difference
