Package org.drools.lang

Examples of org.drools.lang.Location


    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_END4() {
        String input =
            "rule MyRule \n" +
            "    when \n" +
            "        Class ( property not memberOf collection ";
        Location location = new CompletionContext(input).getLocation();
        assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_END, location.getType());
        assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
        }
View Full Code Here


    public void testCheckLHSLocationDetermination_INSIDE_CONDITION_START14() {
        String input =
            "rule MyRule \n" +
            "    when \n" +
            "        Class ( property not memberOf collection, ";
        Location location = new CompletionContext(input).getLocation();
        assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
        assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
        }
View Full Code Here

    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS1() {
        String input =
            "rule MyRule \n" +
            "    when \n" +
            "        exists ";
        Location location = new CompletionContext(input).getLocation();
        assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
        }
View Full Code Here

    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS2() {
        String input =
            "rule MyRule \n" +
            "    when \n" +
            "        exists ( ";
        Location location = new CompletionContext(input).getLocation();
        assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
        }
View Full Code Here

    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS3() {
        String input =
            "rule MyRule \n" +
            "    when \n" +
            "        exists(";
        Location location = new CompletionContext(input).getLocation();
        assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
        }
View Full Code Here

    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS4() {
        String input =
            "rule MyRule \n" +
            "    when \n" +
            "        exists Cl";
        Location location = new CompletionContext(input).getLocation();
        assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
        }
View Full Code Here

    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS5() {
        String input =
            "rule MyRule \n" +
            "    when \n" +
            "        exists ( Cl";
        Location location = new CompletionContext(input).getLocation();
        assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
        }
View Full Code Here

    public void testCheckLHSLocationDetermination_BEGIN_OF_CONDITION_EXISTS6() {
        String input =
            "rule MyRule \n" +
            "    when \n" +
            "        exists ( name : Cl";
        Location location = new CompletionContext(input).getLocation();
        assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION_EXISTS, location.getType());
        }
View Full Code Here

    public void testCheckLHSLocationDeterminationINSIDE_CONDITION_START16() {
        String input =
            "rule MyRule \n" +
            "    when \n" +
            "        exists Class (";
        Location location = new CompletionContext(input).getLocation();
        assertEquals(Location.LOCATION_LHS_INSIDE_CONDITION_START, location.getType());
        assertEquals("Class", location.getProperty(Location.LOCATION_PROPERTY_CLASS_NAME));
        }
View Full Code Here

        String input =
            "rule MyRule \n" +
            "    when \n" +
            "        exists Class ( ) \n" +
            "       ";
        Location location = new CompletionContext(input).getLocation();
        assertEquals(Location.LOCATION_LHS_BEGIN_OF_CONDITION, location.getType());
        }
View Full Code Here

TOP

Related Classes of org.drools.lang.Location

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.