You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by di...@apache.org on 2007/10/28 07:40:18 UTC
svn commit: r589280 -
/commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/parser/ParserTest.java
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)