Package org.apache.commons.jexl

Examples of org.apache.commons.jexl.Foo


    public AsserterTest(String testName) {
        super(testName);
    }

    public void testThis() throws Exception {
        Asserter asserter = new Asserter(new Foo());
       
        asserter.assertExpression("this.get('abc')", "Repeat : abc");
       
        try {
            asserter.assertExpression("this.count", "Wrong Value");
View Full Code Here


        }
    }

    public void testVariable() throws Exception {
        Asserter asserter = new Asserter();
        asserter.setVariable("foo", new Foo());
        asserter.setVariable("person", "James");

        asserter.assertExpression("person", "James");
        asserter.assertExpression("size(person)", new Integer(5));
       
View Full Code Here

    public AsserterTest(String testName) {
        super(testName);
    }

    public void testThis() throws Exception {
        Asserter asserter = new Asserter(new Foo());
       
        asserter.assertExpression("this.get('abc')", "Repeat : abc");
       
        try {
            asserter.assertExpression("this.count", "Wrong Value");
View Full Code Here

        }
    }

    public void testVariable() throws Exception {
        Asserter asserter = new Asserter();
        asserter.setVariable("foo", new Foo());
        asserter.setVariable("person", "James");

        asserter.assertExpression("person", "James");
        asserter.assertExpression("size(person)", new Integer(5));
       
View Full Code Here

TOP

Related Classes of org.apache.commons.jexl.Foo

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.