commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r589280 - /commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/parser/ParserTest.java
Date Sun, 28 Oct 2007 06:40:18 GMT
Author: dion
Date: Sat Oct 27 23:40:16 2007
New Revision: 589280

URL: http://svn.apache.org/viewvc?rev=589280&view=rev
Log:
remove unused code

Modified:
    commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/parser/ParserTest.java

Modified: commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/parser/ParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/parser/ParserTest.java?rev=589280&r1=589279&r2=589280&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/parser/ParserTest.java
(original)
+++ commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/parser/ParserTest.java
Sat Oct 27 23:40:16 2007
@@ -16,14 +16,11 @@
  */
 package org.apache.commons.jexl.parser;
 
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.framework.Test;
-
 import java.io.StringReader;
 
-import org.apache.commons.jexl.JexlContext;
-import org.apache.commons.jexl.JexlHelper;
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
 
 /**
  * @since 1.0
@@ -50,11 +47,7 @@
          Parser parser = new Parser(new StringReader(";"));
 
          SimpleNode sn = parser.parse(new StringReader("foo = 1;"));
-
-         JexlContext jc = JexlHelper.createContext();
-
-		// TODO: Remove
-        //sn.interpret(jc);
+         assertNotNull("parsed node is null", sn);
      }
 
     public void testParse2()
@@ -62,14 +55,11 @@
     {
         Parser parser = new Parser(new StringReader(";"));
 
-        JexlContext jc = JexlHelper.createContext();
-
         SimpleNode sn = parser.parse(new StringReader("foo = \"bar\";"));
-        // TODO: Remove
-        //sn.interpret(jc);
+        assertNotNull("parsed node is null", sn);
+
         sn = parser.parse(new StringReader("foo = 'bar';"));
-        // TODO: Remove
-        //sn.interpret(jc);
+        assertNotNull("parsed node is null", sn);
     }
 
     public static void main(String[] args)



Mime
View raw message