[jboss-svn-commits] JBL Code SVN: r13501 - in labs/jbossrules/trunk: drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Jul 14 11:05:39 EDT 2007


Author: tirelli
Date: 2007-07-14 11:05:39 -0400 (Sat, 14 Jul 2007)
New Revision: 13501

Modified:
   labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/test_MapAccess.drl
   labs/jbossrules/trunk/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/LocationDeterminatorTest.java
Log:
Fixing tests

Modified: labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/test_MapAccess.drl
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/test_MapAccess.drl	2007-07-14 14:33:53 UTC (rev 13500)
+++ labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/test_MapAccess.drl	2007-07-14 15:05:39 UTC (rev 13501)
@@ -6,7 +6,7 @@
 
 rule "map access"
 	when
-		$m : Map( this['name'] == "Edson", this.surname == "Tirelli", this['age'] == 28 )
+		$m : Map( this['name'] == "Edson", this.surname == "Tirelli", this.age == 28 )
 	then
 		results.add( $m );
 end
\ No newline at end of file

Modified: labs/jbossrules/trunk/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/LocationDeterminatorTest.java
===================================================================
--- labs/jbossrules/trunk/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/LocationDeterminatorTest.java	2007-07-14 14:33:53 UTC (rev 13500)
+++ labs/jbossrules/trunk/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/LocationDeterminatorTest.java	2007-07-14 15:05:39 UTC (rev 13501)
@@ -1363,7 +1363,7 @@
         input = 
         	"rule MyRule \n" +
         	"	when \n" +
-        	"		ArrayList(size > 50) from accumulate( Person( disabled == \"yes\", income > 100000 ) from town.getPersons() )";
+        	"		ArrayList(size > 50) from accumulate( Person( disabled == \"yes\", $i : income > 100000 ) from town.getPersons(), max( $i ) )";
         location = LocationDeterminator.getLocation(input);
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
 




More information about the jboss-svn-commits mailing list