Skip to main content

[el-spec commits] [el-spec~source-code:51] Update test to use eval instead of getValue.

  • From: kchung@...
  • To: commits@...
  • Subject: [el-spec commits] [el-spec~source-code:51] Update test to use eval instead of getValue.
  • Date: Wed, 7 Mar 2012 17:55:16 +0000

Project:    el-spec
Repository: source-code
Revision:   51
Author:     kchung
Date:       2012-03-07 17:55:13 UTC
Link:       

Log Message:
------------
Update test to use eval instead of getValue.



Revisions:
----------
51


Modified Paths:
---------------
trunk/impl/src/test/java/org/glassfish/el/test/ELProcessorTest.java
trunk/impl/src/test/java/org/glassfish/el/test/LinqTest.java


Diffs:
------
Index: trunk/impl/src/test/java/org/glassfish/el/test/ELProcessorTest.java
===================================================================
--- trunk/impl/src/test/java/org/glassfish/el/test/ELProcessorTest.java 
(revision 50)
+++ trunk/impl/src/test/java/org/glassfish/el/test/ELProcessorTest.java 
(revision 51)
@@ -19,7 +19,7 @@
 
     @Test
     public void testGetValue() {
-        Object result = elp.getValue("10 + 1");
+        Object result = elp.eval("10 + 1");
         assertEquals(result.toString(), "11");
         result = elp.getValue("10 + 2", String.class);
         assertEquals(result, "12");
@@ -31,6 +31,6 @@
         Object result = elp.getValue("xx + 11", String.class);
         assertEquals(result, "111");
         elp.setVariable("xx", null);
-        assertEquals(elp.getValue("xx"), null);
+        assertEquals(elp.eval("xx"), null);
     }
 }
Index: trunk/impl/src/test/java/org/glassfish/el/test/LinqTest.java
===================================================================
--- trunk/impl/src/test/java/org/glassfish/el/test/LinqTest.java        
(revision 50)
+++ trunk/impl/src/test/java/org/glassfish/el/test/LinqTest.java        
(revision 51)
@@ -36,7 +36,7 @@
     void testMap(String name, String query, String[] expected) {
         p("=== Test " + name + "===");
         p(query);
-        Map map = (Map)elp.getValue(query);
+        Map map = (Map)elp.eval(query);
         p(" = returns =");
         int indx = 0;
         while (indx < expected.length) {
@@ -64,7 +64,7 @@
     void testIterable(String name, String query, String[] expected) {
         p("=== Testing " + name + " ===");
         p(query);
-        Object ret = elp.getValue(query);
+        Object ret = elp.eval(query);
         int indx = 0;
         p(" = returns =");
         for (Object item: (Iterable) ret) {





[el-spec commits] [el-spec~source-code:51] Update test to use eval instead of getValue.

kchung 03/07/2012
 
 
Close
loading
Please Confirm
Close