[jboss-svn-commits] JBL Code SVN: r14038 - labs/jbossrules/trunk/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Aug 4 20:22:10 EDT 2007


Author: pombredanne
Date: 2007-08-04 20:22:09 -0400 (Sat, 04 Aug 2007)
New Revision: 14038

Modified:
   labs/jbossrules/trunk/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/CompletionContextTest.java
   labs/jbossrules/trunk/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/IncompleteParsingTest.java
Log:
Splitted the long test methods in smaller independent ones. Prefix failing test method names with FAILING to exclude them from running. There are failing tests that need to be FIXED.

Modified: labs/jbossrules/trunk/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/CompletionContextTest.java
===================================================================
--- labs/jbossrules/trunk/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/CompletionContextTest.java	2007-08-04 22:31:03 UTC (rev 14037)
+++ labs/jbossrules/trunk/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/CompletionContextTest.java	2007-08-05 00:22:09 UTC (rev 14038)
@@ -55,1108 +55,1368 @@
     	assertTrue(CompletionContext.PATTERN_PATTERN_COMPARATOR_ARGUMENT.matcher("(property==otherProp").matches());
     }
 
-    public void testCheckLHSLocationDetermination() {
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION1() {
         String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		";
         Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+    }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION2() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class( condition == true ) \n" +
         	"		";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+    }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION3() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		class: Class( condition == true, condition2 == null ) \n" +
         	"		";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+    }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION4() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION5() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class( condition == true ) \n" +
         	"		Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION6() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		class: Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION7() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		class:Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+    }
 
-        /** Inside of condition: start */
-        input =
+    /** Inside of condition: start */
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START1() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class (";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START2() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( na";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("na", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START3() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name.subProperty['test'].subsu";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("name.subProperty['test'].subsu", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START4() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( condition == true, ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START5() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( condition == true, na";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START6() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( \n" +
         	"			";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START7() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( condition == true, \n" +
         	"			";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
 
-        input =
-        	"rule MyRule \n" +
+    }
+
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START8() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( c: condition, \n" +
         	"			";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void FAILINGtestCheckLHSLocationDetermination_INSIDE_CONDITION_START9() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
-        	"		Class ( name : ";
-        location = new CompletionContext(input).getLocation();
-        assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
-        assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
-
-        input =
-        	"rule MyRule \n" +
-        	"	when \n" +
         	"		Class ( name: ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START10() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name:";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
 
-        /** Inside of condition: Operator */
-        input =
-        	"rule MyRule \n" +
+    }
+
+    /** Inside of  condition: Operator */
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR1() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR2() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class(property ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR3() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name : property ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR4() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class (name:property ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR5() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class (name:property   ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR6() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name1 : property1, name : property ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR7() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name1 : property1 == \"value\", name : property ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR8() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name1 : property1 == \"value\",property ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR9() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name1 : property1, \n" +
         	"			name : property ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+    }
 
-        /** Inside of condition: argument */
-        input =
-        	"rule MyRule \n" +
+    /** Inside of condition: argument */
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT1() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property == ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("==", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+    }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT2() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property== ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("==", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+    }
 
-        input =
-        	"rule MyRule \n" +
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT3() {
+        String input =
+            "rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name : property <= ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("<=", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+    }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT4() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name:property != ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("!=", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+    }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT5() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name1 : property1, property2 == ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property2", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("==", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+    }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT6() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class (name:property== ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("==", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+    }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT7() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property == otherPropertyN";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("==", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+    }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT8() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property == \"someth";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("==", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT9() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property contains ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("contains", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT10() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property excludes ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("excludes", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT11() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property matches \"prop";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("matches", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT12() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property in ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("in", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_END1() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property in ('1', '2') ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_END, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START11() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property in ('1', '2'), ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT13() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property not in ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("in", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_END2() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property not in ('1', '2') ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_END, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START12() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property not in ('1', '2'), ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT14() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property memberOf ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("memberOf", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_END3() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property memberOf collection ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_END, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START13() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property memberOf collection, ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT15() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property not memberOf ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("memberOf", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_END4() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property not memberOf collection ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_END, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START14() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property not memberOf collection, ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-
-        /** EXISTS */
-        input =
+    /** EXISTS */
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS1() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		exists ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS2() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		exists ( ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS3() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		exists(";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS4() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		exists Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS5() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		exists ( Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS6() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		exists ( name : Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDeterminationINSIDE_CONDITION_START16() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		exists Class (";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		exists Class ( ) \n" +
         	"       ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        /** NOT */
-        input =
+    /** NOT */
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_NOT1() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		not ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_NOT, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_NOT2() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		not Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_NOT, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS7() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		not exists ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS8() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		not exists Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START21() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		not Class (";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        // TODO
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START22() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		not exists Class (";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START23() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		not exists name : Class (";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION9() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		not Class () \n" +
         	"		";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        /** AND */
-        input =
+    /** AND */
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR1() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) and ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR2() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) &&  ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR3() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class () and   ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR4() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		name : Class ( name: property ) and ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR5() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name: property ) \n" +
         	"       and ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR6() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) and Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR7() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) and name : Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR8() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) && name : Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION31() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) and Class ( ) \n" +
         	"       ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION32() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) and not Class ( ) \n" +
         	"       ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION33() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) and exists Class ( ) \n" +
         	"       ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START20() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) and Class ( ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR21() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) and Class ( name ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("name", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR22() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) and Class ( name == ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_NOT() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		exists Class ( ) and not ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_NOT, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		exists Class ( ) and exists ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION30() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) and not Class ( ) \n" +
         	"       ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
 
         /** OR */
-        input =
+        }
+
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR21() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) or ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR22() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) || ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR23() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class () or   ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR24() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		name : Class ( name: property ) or ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR25() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name: property ) \n" +
         	"       or ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR26() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) or Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR27() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) or name : Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_AND_OR28() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) || name : Cl";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_AND_OR, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION40() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) or Class ( ) \n" +
         	"       ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START40() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) or Class ( ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) or Class ( name ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("name", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT30() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( ) or Class ( name == ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_EGIN_OF_CONDITION_NOT() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		exists Class ( ) or not ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_NOT, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS40() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		exists Class ( ) or exists ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
+        }
 
-        /** EVAL */
-        input =
+    /** EVAL */
+    public void testCheckLHSLocationDetermination_INSIDE_EVAL1() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval ( ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_EVAL, location.getType());
         assertEquals("", location.getProperty(Location.LOCATION_EVAL_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_EVAL2() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval(";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_EVAL, location.getType());
         assertEquals("", location.getProperty(Location.LOCATION_EVAL_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_EVAL3() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval( myCla";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_EVAL, location.getType());
         assertEquals("myCla", location.getProperty(Location.LOCATION_EVAL_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_EVAL4() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval( param.getMetho";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_EVAL, location.getType());
         assertEquals("param.getMetho", location.getProperty(Location.LOCATION_EVAL_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_EVAL5() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval( param.getMethod(";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_EVAL, location.getType());
         assertEquals("param.getMethod(", location.getProperty(Location.LOCATION_EVAL_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_EVAL6() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval( param.getMethod().get";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_EVAL, location.getType());
         assertEquals("param.getMethod().get", location.getProperty(Location.LOCATION_EVAL_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_EVAL7() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval( param.getMethod(\"someStringWith)))\").get";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_EVAL, location.getType());
         assertEquals("param.getMethod(\"someStringWith)))\").get", location.getProperty(Location.LOCATION_EVAL_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_EVAL8() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval( param.getMethod(\"someStringWith(((\").get";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_EVAL, location.getType());
         assertEquals("param.getMethod(\"someStringWith(((\").get", location.getProperty(Location.LOCATION_EVAL_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_EVAL9() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval( true )";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION50() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval( param.getProperty(name).isTrue() )";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION51() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval( param.getProperty(\"someStringWith(((\").isTrue() )";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_EVAL10() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval( param.getProperty((((String) s) )";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_EVAL, location.getType());
         assertEquals("param.getProperty((((String) s) )", location.getProperty(Location.LOCATION_EVAL_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION52() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval( param.getProperty((((String) s))))";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION53() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		eval( true ) \n" +
         	"       ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        /** MULTIPLE RESTRICTIONS */
-
-        input =
+    /** MULTIPLE RESTRICTIONS */
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR12() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 && ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR13() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name : property1, property2 > 0 && ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property2", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR14() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property1 < 20, property2 > 0 && ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property2", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT20() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 && < ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("<", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_END6() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 && < 10 ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_END, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START41() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 && < 10, ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR60() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 || ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR61() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 || \n" +
         	"       ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR62() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name : property1, property2 > 0 || ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property2", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR63() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property1 < 20, property2 > 0 || ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property2", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_END10() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_END, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_END11() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 \n" +
         	"       ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_END, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_END12() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 && < 10 ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_END, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_END13() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 || < 10 ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_END, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_END14() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property == \"test\" || == \"test2\" ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_END, location.getType());
+        }
 
-        /** FROM */
-        input =
+    /** FROM */
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION60() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION61() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) fr";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_FROM1() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM, location.getType());
         assertEquals("", location.getProperty(Location.LOCATION_FROM_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_FROM2() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from myGlob";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM, location.getType());
         assertEquals("myGlob", location.getProperty(Location.LOCATION_FROM_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_FROM3() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from myGlobal.get";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM, location.getType());
         assertEquals("myGlobal.get", location.getProperty(Location.LOCATION_FROM_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION75() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from myGlobal.getList() \n" +
         	"       ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION71() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from getDroolsFunction() \n" +
         	"       ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        /** FROM ACCUMULATE */
-        input =
+    /** FROM ACCUMULATE */
+    public void testCheckLHSLocationDetermination_FROM_ACCUMULATE1() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from accumulate ( ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM_ACCUMULATE, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_FROM_ACCUMULATE2() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from accumulate(";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM_ACCUMULATE, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION73() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from accumulate( \n" +
@@ -1166,32 +1426,38 @@
         	"           result( new Integer( total ) ) \n" +
         	"		) \n" +
         	"		";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_FROM_ACCUMULATE_INIT_INSIDE() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from accumulate( \n" +
         	"			$cheese : Cheese( type == $likes ), \n" +
         	"			init( ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM_ACCUMULATE_INIT_INSIDE, location.getType());
         assertEquals("", location.getProperty(Location.LOCATION_PROPERTY_FROM_ACCUMULATE_INIT_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_FROM_ACCUMULATE_ACTION_INSIDE() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from accumulate( \n" +
         	"			$cheese : Cheese( type == $likes ), \n" +
         	"			init( int total = 0; ), \n" +
         	"			action( ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM_ACCUMULATE_ACTION_INSIDE, location.getType());
         assertEquals(" int total = 0; ", location.getProperty(Location.LOCATION_PROPERTY_FROM_ACCUMULATE_INIT_CONTENT));
         assertEquals("", location.getProperty(Location.LOCATION_PROPERTY_FROM_ACCUMULATE_ACTION_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_FROM_ACCUMULATE_RESULT_INSIDE() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from accumulate( \n" +
@@ -1199,35 +1465,41 @@
         	"			init( int total = 0; ), \n" +
         	"			action( total += $cheese.getPrice(); ), \n" +
         	"           result( ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM_ACCUMULATE_RESULT_INSIDE, location.getType());
         assertEquals(" int total = 0; ", location.getProperty(Location.LOCATION_PROPERTY_FROM_ACCUMULATE_INIT_CONTENT));
         assertEquals(" total += $cheese.getPrice(); ", location.getProperty(Location.LOCATION_PROPERTY_FROM_ACCUMULATE_ACTION_CONTENT));
         assertEquals("", location.getProperty(Location.LOCATION_PROPERTY_FROM_ACCUMULATE_RESULT_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_FROM_ACCUMULATE_INIT_INSIDE2() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from accumulate( \n" +
         	"			$cheese : Cheese( type == $likes ), \n" +
         	"			init( int total =";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM_ACCUMULATE_INIT_INSIDE, location.getType());
         assertEquals("int total =", location.getProperty(Location.LOCATION_PROPERTY_FROM_ACCUMULATE_INIT_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_FROM_ACCUMULATE_ACTION_INSIDE2() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from accumulate( \n" +
         	"			$cheese : Cheese( type == $likes ), \n" +
         	"			init( int total = 0; ), \n" +
         	"			action( total += $ch";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM_ACCUMULATE_ACTION_INSIDE, location.getType());
         assertEquals(" int total = 0; ", location.getProperty(Location.LOCATION_PROPERTY_FROM_ACCUMULATE_INIT_CONTENT));
         assertEquals("total += $ch", location.getProperty(Location.LOCATION_PROPERTY_FROM_ACCUMULATE_ACTION_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_FROM_ACCUMULATE_RESULT_INSIDE2() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from accumulate( \n" +
@@ -1235,200 +1507,240 @@
         	"			init( int total = 0; ), \n" +
         	"			action( total += $cheese.getPrice(); ), \n" +
         	"           result( new Integer( tot";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM_ACCUMULATE_RESULT_INSIDE, location.getType());
         assertEquals(" int total = 0; ", location.getProperty(Location.LOCATION_PROPERTY_FROM_ACCUMULATE_INIT_CONTENT));
         assertEquals(" total += $cheese.getPrice(); ", location.getProperty(Location.LOCATION_PROPERTY_FROM_ACCUMULATE_ACTION_CONTENT));
         assertEquals("new Integer( tot", location.getProperty(Location.LOCATION_PROPERTY_FROM_ACCUMULATE_RESULT_CONTENT));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from accumulate( \n" +
         	"			$cheese : Cheese( ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Cheese", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR40() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from accumulate( \n" +
         	"			$cheese : Cheese( type ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Cheese", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("type", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from accumulate( \n" +
         	"			$cheese : Cheese( type == ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Cheese", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("type", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        /** FROM COLLECT */
-        input =
+    /** FROM COLLECT */
+    public void testCheckLHSLocationDetermination_FROM_COLLECT1() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from collect ( ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM_COLLECT, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_FROM_COLLECT2() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from collect(";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM_COLLECT, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION67() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from collect ( \n" +
         	"			Cheese( type == $likes )" +
         	"		) \n" +
         	"		";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START31() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from collect ( \n" +
         	"			Cheese( ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Cheese", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR31() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from collect ( \n" +
         	"			Cheese( type ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Cheese", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("type", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT21() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from collect ( \n" +
         	"			Cheese( type == ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Cheese", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("type", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        /** NESTED FROM */
-        input =
+    /** NESTED FROM */
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION68() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		ArrayList(size > 50) from collect( Person( disabled == \"yes\", income > 100000 ) ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_FROM5() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		ArrayList(size > 50) from collect( Person( disabled == \"yes\", income > 100000 ) from ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION69() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		ArrayList(size > 50) from collect( Person( disabled == \"yes\", income > 100000 ) from town.getPersons() )";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION70() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		ArrayList(size > 50) from accumulate( Person( disabled == \"yes\", income > 100000 ) ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_FROM6() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		ArrayList(size > 50) from accumulate( Person( disabled == \"yes\", income > 100000 ) from ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_FROM, location.getType());
+        }
 
-//moved to testCheckLHSLocationDetermination_Failing
-//        input =
-//        	"rule MyRule \n" +
-//        	"	when \n" +
-//        	"		ArrayList(size > 50) from accumulate( Person( disabled == \"yes\", income > 100000 ) from town.getPersons() )";
-//        location = new CompletionContext(input).getLocation();
-//        assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
-
-        /** FORALL */
-        input =
+    /** FORALL */
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION81() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		forall ( ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START32() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		forall ( " +
         	"           Class ( pr";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("pr", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_OPERATOR32() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		forall ( " +
         	"           Class ( property ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_OPERATOR, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_ARGUMENT22() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		forall ( " +
         	"           Class ( property == ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_ARGUMENT, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
         assertEquals("property", location.getProperty(Location.LOCATION_PROPERTY_PROPERTY_NAME));
         assertEquals("==", location.getProperty(Location.LOCATION_PROPERTY_OPERATOR));
+        }
 
-        input =
+    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION76() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		forall ( " +
         	"           Class ( property == \"test\")" +
         	"           C";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
     }
 
     //TODO: fix me
-    public void FailingtestCheckLHSLocationDetermination_Failing() {
+    public void FAILINGtestCheckLHSLocationDetermination_BEGIN_OF_CONDITION77() {
         String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		ArrayList(size > 50) from accumulate( Person( disabled == \"yes\", income > 100000 ) from town.getPersons() )";
         Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+    }
 
+    //TODO: fix me
+    public void FAILINGtestCheckLHSLocationDetermination_INSIDE_CONDITION_START45() {
+        String input =
+            "rule MyRule \n" +
+            "   when \n" +
+            "       Class ( name : ";
+        Location location = new CompletionContext(input).getLocation();
+        assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
+        assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
     }
 
-    public void testCheckRHSLocationDetermination() {
+    public void testCheckRHSLocationDetermination_firstLineOfLHS() {
         String input =
         	"rule MyRule \n" +
         	"	when\n" +
@@ -1440,25 +1752,29 @@
 
         assertEquals(Location.LOCATION_RHS, location.getType());
         assertEquals("", location.getProperty(Location.LOCATION_RHS_CONTENT));
+    }
 
-        input =
+    public void testCheckRHSLocationDetermination_startOfNewlINE() {
+        String input =
         	"rule MyRule \n" +
         	"	when\n" +
         	"		Class ( )\n" +
         	"   then\n" +
         	"       assert(null);\n" +
         	"       ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_RHS, location.getType());
         assertEquals("assert(null);\n       ", location.getProperty(Location.LOCATION_RHS_CONTENT));
+    }
 
-        input =
+    public void testCheckRHSLocationDetermination3() {
+        String input =
         	"rule MyRule \n" +
         	"	when\n" +
         	"		Class ( )\n" +
         	"   then\n" +
         	"       meth";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_RHS, location.getType());
         assertEquals("meth", location.getProperty(Location.LOCATION_RHS_CONTENT));
     }
@@ -1468,20 +1784,24 @@
         	"rule MyRule ";
         Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_RULE_HEADER, location.getType());
+    }
 
-        input =
+    public void testCheckRuleHeaderLocationDetermination2() {
+        String input =
         	"rule MyRule \n" +
         	"	salience 12 activation-group \"my";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_RULE_HEADER, location.getType());
+    }
 
+    public void FAILINGtestCheckRuleHeaderLocationDetermination3() {
         // KRISV: still can't make this work... apparently, ANTLR is trying to recover from
         // the error (unkown token) by deleting the token. I don't know why it continues to
         // execute actions though, if the EOF is found.
-//        input =
-//        	"rule \"Hello World\" ruleflow-group \"hello\" s";
-//        location = new CompletionContext(input).getLocation();
-//        assertEquals(Location.LOCATION_RULE_HEADER, location.getType());
+        String input =
+          "rule \"Hello World\" ruleflow-group \"hello\" s";
+        Location location = new CompletionContext(input).getLocation();
+        assertEquals(Location.LOCATION_RULE_HEADER, location.getType());
     }
 
     public void testCheckRuleHeaderLocationDetermination_dialect1() {
@@ -1516,28 +1836,35 @@
         assertEquals(Location.LOCATION_RULE_HEADER, location.getType());
     }
 
-    public void testCheckQueryLocationDetermination() {
+    //TODO: add tests for dialect defined at package header level
+
+    public void testCheckQueryLocationDetermination_RULE_HEADER1() {
         String input =
         	"query MyQuery ";
         Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_RULE_HEADER, location.getType());
+        }
 
-        input =
+    public void testCheckQueryLocationDetermination_RULE_HEADER2() {
+        String input =
         	"query \"MyQuery\" ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_RULE_HEADER, location.getType());
+        }
 
-        input =
+    public void testCheckQueryLocationDetermination_LHS_BEGIN_OF_CONDITION() {
+        String input =
             "query MyQuery() ";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
+        }
 
-        input =
+    public void testCheckQueryLocationDetermination_LHS_INSIDE_CONDITION_START() {
+        String input =
         	"query MyQuery \n" +
         	"	Class (";
-        location = new CompletionContext(input).getLocation();
+        Location location = new CompletionContext(input).getLocation();
         assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
         assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
     }
-
-}
+}
\ No newline at end of file

Modified: labs/jbossrules/trunk/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/IncompleteParsingTest.java
===================================================================
--- labs/jbossrules/trunk/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/IncompleteParsingTest.java	2007-08-04 22:31:03 UTC (rev 14037)
+++ labs/jbossrules/trunk/drools-eclipse/drools-eclipse-test/src/test/java/org/drools/eclipse/editors/completion/IncompleteParsingTest.java	2007-08-05 00:22:09 UTC (rev 14038)
@@ -63,12 +63,16 @@
          *     FieldConstraintDescr [fieldName = "condition"]
          *       LiteralRestrictionDescr [evaluator = "==", text = "true"]
          */
-        input =
+    }
+
+
+    public void testParsingColumn1() {
+        String input =
         	"rule MyRule \n" +
         	"  when \n" +
         	"    Class( condition == true ) \n" +
         	"    ";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
         PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
@@ -84,162 +88,213 @@
         LiteralRestrictionDescr restriction = (LiteralRestrictionDescr) field.getRestrictions().get(0);
         assertEquals("==", restriction.getEvaluator());
         assertEquals("true", restriction.getText());
+    }
 
-        input =
+
+    public void testParsingColumn2() {
+        String input =
+
         	"rule MyRule \n" +
 	    	"  when \n" +
 	    	"    class: Class( condition == true, condition2 == null ) \n" +
 	    	"    ";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertTrue(pattern.getEndCharacter() != -1);
+    }
 
-        input =
+
+    public void testParsingColumn3() {
+        String input =
 	    	"rule MyRule \n" +
 	    	"  when \n" +
 	    	"    Cl";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(0, rule.getLhs().getDescrs().size());
 
-        input =
+    }
+
+
+    public void testParsingColumn4() {
+        String input =
 	    	"rule MyRule \n" +
 	    	"  when \n" +
 	    	"    Class( condition == true ) \n" +
 	    	"    Cl";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertTrue(pattern.getEndCharacter() != -1);
 
-        input =
+    }
+
+
+    public void testParsingColumn5() {
+        String input =
 			"rule MyRule \n" +
 			"  when \n" +
 			"    class:";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("class", pattern.getIdentifier());
         assertNull(pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
 
-        input =
+    }
+
+
+    public void testParsingColumn6() {
+        String input =
 			"rule MyRule \n" +
 			"  when \n" +
 			"    class: Cl";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("class", pattern.getIdentifier());
         assertEquals("Cl", pattern.getObjectType());
         assertTrue(pattern.getEndLine() == -1 && pattern.getEndColumn() == -1);
         assertEquals(0, pattern.getDescrs().size());
         assertEquals(-1, pattern.getEndCharacter());
 
-        input =
+    }
+
+
+    public void testParsingColumn7() {
+        String input =
 			"rule MyRule \n" +
 			"  when \n" +
 			"    class:Cl";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("class", pattern.getIdentifier());
         assertEquals("Cl", pattern.getObjectType());
         assertTrue(pattern.getEndLine() == -1 && pattern.getEndColumn() == -1);
         assertEquals(0, pattern.getDescrs().size());
         assertEquals(-1, pattern.getEndCharacter());
 
+    }
+
+
+    public void testParsingColumn8() {
         /** Inside of condition: start */
-        input =
+        String input =
 			"rule MyRule \n" +
 			"  when \n" +
 			"    Class (";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertTrue(pattern.getEndLine() == -1 && pattern.getEndColumn() == -1);
         assertEquals(0, pattern.getDescrs().size());
         assertEquals(-1, pattern.getEndCharacter());
 
-        input =
+    }
+
+
+    public void testParsingColumn9() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( na";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(1, pattern.getDescrs().size());
-        field = (FieldConstraintDescr) pattern.getDescrs().get(0);
+        FieldConstraintDescr field = (FieldConstraintDescr) pattern.getDescrs().get(0);
         assertEquals( "na", field.getFieldName() );
         assertEquals(-1, field.getEndCharacter());
 
-        input =
+    }
+
+
+    public void testParsingColumn10() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name['xyz'].subname.subsubn";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(1, pattern.getDescrs().size());
-        field = (FieldConstraintDescr) pattern.getDescrs().get(0);
+        FieldConstraintDescr field = (FieldConstraintDescr) pattern.getDescrs().get(0);
         assertEquals( "name['xyz'].subname.subsubn", field.getFieldName() );
         assertEquals(-1, field.getEndCharacter());
 
-        input =
+    }
+
+
+    public void testParsingColumn11() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( condition == true, ";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(1, pattern.getDescrs().size());
-        field = (FieldConstraintDescr) pattern.getDescrs().get(0);
+        FieldConstraintDescr field = (FieldConstraintDescr) pattern.getDescrs().get(0);
         assertEquals(-1, field.getEndCharacter());
 
-        input =
+    }
+
+
+    public void testParsingColumn12() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( c : condition, ";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(1, pattern.getDescrs().size());
         FieldBindingDescr fieldBinding = (FieldBindingDescr) pattern.getDescrs().get(0);
         assertEquals(-1, fieldBinding.getEndCharacter());
 
-        input =
+    }
+
+
+    public void testParsingColumn13() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( condition == true, na";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(2, pattern.getDescrs().size());
-        field = (FieldConstraintDescr) pattern.getDescrs().get(0);
+        FieldConstraintDescr field = (FieldConstraintDescr) pattern.getDescrs().get(0);
         assertEquals(-1, field.getEndCharacter());
         assertEquals( "condition", field.getFieldName() );
-        field = (FieldConstraintDescr) pattern.getDescrs().get(1);
+         field = (FieldConstraintDescr) pattern.getDescrs().get(1);
         assertEquals( "na", field.getFieldName() );
         assertEquals(-1, field.getEndCharacter());
 
-        input =
+    }
+
+
+    public void FAILINGtestParsingColumn14() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name:";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(1, pattern.getDescrs().size());
@@ -247,28 +302,36 @@
         assertEquals("name", binding1.getIdentifier());
         assertNull(binding1.getFieldName());
 
-        input =
+    }
+
+
+    public void testParsingColumn15() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property ";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(1, pattern.getDescrs().size());
-        field = (FieldConstraintDescr) pattern.getDescrs().get(0);
+        FieldConstraintDescr field = (FieldConstraintDescr) pattern.getDescrs().get(0);
         assertEquals("property", field.getFieldName());
         assertEquals(0, field.getRestrictions().size());
         assertEquals(-1, field.getEndCharacter());
 
-        input =
+    }
+
+
+    public void testParsingColumn16() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name: property ";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(1, pattern.getDescrs().size());
@@ -276,20 +339,24 @@
         assertEquals("name", binding.getIdentifier());
         assertEquals("property", binding.getFieldName());
 
-        input =
+    }
+
+
+    public void testParsingColumn17() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( name1: property1 == \"value1\", name2: property2 ";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(3, pattern.getDescrs().size());
-        binding = (FieldBindingDescr) pattern.getDescrs().get(0);
+        FieldBindingDescr binding = (FieldBindingDescr) pattern.getDescrs().get(0);
         assertEquals("name1", binding.getIdentifier());
         assertEquals("property1", binding.getFieldName());
-        field = (FieldConstraintDescr) pattern.getDescrs().get(1);
+        FieldConstraintDescr field = (FieldConstraintDescr) pattern.getDescrs().get(1);
         assertEquals("property1", field.getFieldName());
         assertEquals(1, field.getRestrictions().size());
         LiteralRestrictionDescr literal = (LiteralRestrictionDescr) field.getRestrictions().get(0);
@@ -299,55 +366,66 @@
         assertEquals("name2", binding.getIdentifier());
         assertEquals("property2", binding.getFieldName());
 
-        input =
+    }
+
+
+    public void testParsingColumn18() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class(name:property==";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(2, pattern.getDescrs().size());
-        binding = (FieldBindingDescr) pattern.getDescrs().get(0);
+        FieldBindingDescr binding = (FieldBindingDescr) pattern.getDescrs().get(0);
         assertEquals("name", binding.getIdentifier());
         assertEquals("property", binding.getFieldName());
-        field = (FieldConstraintDescr) pattern.getDescrs().get(1);
+        FieldConstraintDescr field = (FieldConstraintDescr) pattern.getDescrs().get(1);
         assertEquals("property", field.getFieldName());
         assertEquals(1, field.getRestrictions().size());
 
-        input =
+    }
+
+
+    public void testParsingColumn19() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class( property == otherPropertyN";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(1, pattern.getDescrs().size());
-        field = (FieldConstraintDescr) pattern.getDescrs().get(0);
+        FieldConstraintDescr field = (FieldConstraintDescr) pattern.getDescrs().get(0);
         assertEquals("property", field.getFieldName());
         assertEquals(1, field.getRestrictions().size());
         VariableRestrictionDescr variable = (VariableRestrictionDescr) field.getRestrictions().get(0);
         assertEquals("==", variable.getEvaluator());
         assertEquals("otherPropertyN", variable.getIdentifier());
         assertEquals(-1, field.getEndCharacter());
+    }
 
-        input =
+
+    public void testParsingColumn20() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class( property == \"someth";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(1, pattern.getDescrs().size());
-        field = (FieldConstraintDescr) pattern.getDescrs().get(0);
+        FieldConstraintDescr field = (FieldConstraintDescr) pattern.getDescrs().get(0);
         assertEquals("property", field.getFieldName());
         assertEquals(1, field.getRestrictions().size());
-        literal = (LiteralRestrictionDescr) field.getRestrictions().get(0);
+        LiteralRestrictionDescr literal = (LiteralRestrictionDescr) field.getRestrictions().get(0);
         // KRISV: for now, it would be really messy to make this work. String is a
         // lexer rule (not parser), and changing that or controling the behavior of it
         // is not simple. Can we leave the way it is for now?
@@ -358,17 +436,21 @@
         // TODO this method does not yet exist
         // assertEquals(-1, field.getEndCharacter());
 
-        input =
+    }
+
+
+    public void testParsingColumn21() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class( property contains ";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(1, pattern.getDescrs().size());
-        field = (FieldConstraintDescr) pattern.getDescrs().get(0);
+        FieldConstraintDescr field = (FieldConstraintDescr) pattern.getDescrs().get(0);
         assertEquals("property", field.getFieldName());
         assertEquals(1, field.getRestrictions().size());
         // KRISV: you are right
@@ -381,21 +463,24 @@
         // starting character of this FieldConstraintDescr?
         // TODO this method does not yet exist
         assertEquals(-1, field.getEndCharacter());
+    }
 
-        input =
+
+    public void testParsingColumn22() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class( property matches \"someth";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(1, pattern.getDescrs().size());
-        field = (FieldConstraintDescr) pattern.getDescrs().get(0);
+        FieldConstraintDescr field = (FieldConstraintDescr) pattern.getDescrs().get(0);
         assertEquals("property", field.getFieldName());
         assertEquals(1, field.getRestrictions().size());
-        literal = (LiteralRestrictionDescr) field.getRestrictions().get(0);
+        LiteralRestrictionDescr literal = (LiteralRestrictionDescr) field.getRestrictions().get(0);
         // KRISV: see comments above
         //
         // TODO literal should be a LiteralRestrictionDescr with filled in evaluator and text, not null
@@ -403,70 +488,83 @@
         // assertEquals("someth", literal.getText());
         // TODO this method does not yet exist
         // assertEquals(-1, field.getEndCharacter());
+    }
 
-        input =
+
+    public void testParsingColumn23() {
+        String input =
             "rule MyRule \n" +
             "   when \n" +
             "       eval ( ";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
         EvalDescr eval = (EvalDescr) rule.getLhs().getDescrs().get(0);
         assertEquals(input.indexOf( "eval" ), eval.getStartCharacter());
         assertEquals(-1, eval.getEndCharacter());
+    }
 
-        input =
+
+    public void testParsingColumn24() {
+        String input =
             "rule MyRule \n" +
             "   when \n" +
             "       Class ( property > 0 & ";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         assertEquals(-1, pattern.getEndCharacter());
         assertEquals(1, pattern.getDescrs().size());
-        field = (FieldConstraintDescr) pattern.getDescrs().get(0);
+        FieldConstraintDescr field = (FieldConstraintDescr) pattern.getDescrs().get(0);
         assertEquals("property", field.getFieldName());
         assertEquals(1, field.getRestrictions().size());
-        literal = (LiteralRestrictionDescr) field.getRestrictions().get(0);
+        LiteralRestrictionDescr literal = (LiteralRestrictionDescr) field.getRestrictions().get(0);
         assertEquals(">", literal.getEvaluator());
         assertEquals("0", literal.getText());
         RestrictionConnectiveDescr connective = (RestrictionConnectiveDescr) field.getRestriction();
         assertEquals(RestrictionConnectiveDescr.AND, connective.getConnective());
+    }
 
-        input =
+
+    public void testParsingColumn25() {
+        String input =
             "rule MyRule \n" +
             "   when \n" +
             "       Class ( ) from a";
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
         assertEquals("Class", pattern.getObjectType());
         FromDescr from = (FromDescr) pattern.getSource();
         assertEquals(-1, from.getEndCharacter());
         assertTrue(pattern.getEndCharacter() != -1);
+    }
 
-        input =
+
+    public void testParsingColumn26() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from myGlobal.getList() \n" +
         	"       ";
-        rule = parseRuleString(input);
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
-        from = (FromDescr) pattern.getSource();
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        FromDescr from = (FromDescr) pattern.getSource();
         assertTrue(from.getEndCharacter() != -1);
+    }
 
-        input =
+
+    public void testParsingColumn27() {
+        String input =
         	"rule MyRule \n" +
         	"	when \n" +
         	"		Class ( property > 0 ) from getDroolsFunction() \n" +
         	"       ";
-        rule = parseRuleString(input);
-        rule = parseRuleString(input);
+        RuleDescr rule = parseRuleString(input);
         assertEquals(1, rule.getLhs().getDescrs().size());
-        pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
-        from = (FromDescr) pattern.getSource();
+        PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get(0);
+        FromDescr from = (FromDescr) pattern.getSource();
         assertTrue(from.getEndCharacter() != -1);
     }
 




More information about the jboss-svn-commits mailing list