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");
End
When I created an instance of arrayCollection and asserted, "contains check" rule is not printing "contains working"
Can anyone tell me the reason
Thnx,
Sandeep
(080) 2601 3080
