You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2006/04/03 13:28:36 UTC

svn commit: r391011 - in /jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl: ScriptFactoryTest.java ScriptTest.java

Author: dion
Date: Mon Apr  3 04:28:32 2006
New Revision: 391011

URL: http://svn.apache.org/viewcvs?rev=391011&view=rev
Log:
props

Modified:
    jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java   (contents, props changed)
    jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java   (contents, props changed)

Modified: jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java?rev=391011&r1=391010&r2=391011&view=diff
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java (original)
+++ jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java Mon Apr  3 04:28:32 2006
@@ -1,38 +1,38 @@
-/*
- * Copyright 2002-2006 The Apache Software Foundation.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.commons.jexl;
-
-import junit.framework.TestCase;
-
-public class ScriptFactoryTest extends TestCase {
-
-    /**
-     * Creates a new test case.
-     * @param name the test case name.
-     */
-    public ScriptFactoryTest(String name) {
-        super(name);
-    }
-    
-    /**
-     * Ensure the factory can create a script from a String
-     * @throws Exception on a parse error
-     */
-    public void testCreateFromString() throws Exception {
-        String code = ";";
-        assertNotNull("No script created", ScriptFactory.createScript(code));
-    }
-}
+/*
+ * Copyright 2002-2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.jexl;
+
+import junit.framework.TestCase;
+
+public class ScriptFactoryTest extends TestCase {
+
+    /**
+     * Creates a new test case.
+     * @param name the test case name.
+     */
+    public ScriptFactoryTest(String name) {
+        super(name);
+    }
+    
+    /**
+     * Ensure the factory can create a script from a String
+     * @throws Exception on a parse error
+     */
+    public void testCreateFromString() throws Exception {
+        String code = ";";
+        assertNotNull("No script created", ScriptFactory.createScript(code));
+    }
+}

Propchange: jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java?rev=391011&r1=391010&r2=391011&view=diff
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java (original)
+++ jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java Mon Apr  3 04:28:32 2006
@@ -1,38 +1,38 @@
-/*
- * Copyright 2002-2006 The Apache Software Foundation.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.commons.jexl;
-
-import junit.framework.TestCase;
-
-public class ScriptTest extends TestCase {
-
-    /**
-     * Create a new test case.
-     * @param name case name
-     */
-    public ScriptTest(String name) {
-        super(name);
-    }
-
-    public void testSimpleScript() throws Exception {
-        Script s = ScriptFactory.createScript("while (x < 10) x = x + 1;");
-        JexlContext jc = JexlHelper.createContext();
-        jc.getVars().put("x", new Integer(1));
-    
-        Object o = s.execute(jc);
-        assertEquals("Result is wrong", new Long(10), o);
-    }
-}
+/*
+ * Copyright 2002-2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.jexl;
+
+import junit.framework.TestCase;
+
+public class ScriptTest extends TestCase {
+
+    /**
+     * Create a new test case.
+     * @param name case name
+     */
+    public ScriptTest(String name) {
+        super(name);
+    }
+
+    public void testSimpleScript() throws Exception {
+        Script s = ScriptFactory.createScript("while (x < 10) x = x + 1;");
+        JexlContext jc = JexlHelper.createContext();
+        jc.getVars().put("x", new Integer(1));
+    
+        Object o = s.execute(jc);
+        assertEquals("Result is wrong", new Long(10), o);
+    }
+}

Propchange: jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org