Examples of Issue314


Examples of org.nutz.el.issue.Issue314

    public void test_issue314() {
        Context context = Lang.context();
       
        context.set("String", String.class);
       
        Issue314 i314 = new Issue314();
        List<String> list = new ArrayList<String>();
        list.add("123");
        i314.setList(list);
        context.set("map", i314);
       
        assertEquals("123", El.eval(context, "String.valueOf(123)"));
        assertEquals("123", El.eval(context, "map.list.get(0)"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.