commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1209886 - /commons/proper/jexl/branches/COMMONS_JEXL_2_0_1_TEST/src/test/java/org/apache/commons/jexl2/JexlEngineTest.java
Date Sat, 03 Dec 2011 11:10:20 GMT
Author: sebb
Date: Sat Dec  3 11:10:19 2011
New Revision: 1209886

URL: http://svn.apache.org/viewvc?rev=1209886&view=rev
Log:
Add test for JexlEngine Clirr errors

Added:
    commons/proper/jexl/branches/COMMONS_JEXL_2_0_1_TEST/src/test/java/org/apache/commons/jexl2/JexlEngineTest.java
  (with props)

Added: commons/proper/jexl/branches/COMMONS_JEXL_2_0_1_TEST/src/test/java/org/apache/commons/jexl2/JexlEngineTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/COMMONS_JEXL_2_0_1_TEST/src/test/java/org/apache/commons/jexl2/JexlEngineTest.java?rev=1209886&view=auto
==============================================================================
--- commons/proper/jexl/branches/COMMONS_JEXL_2_0_1_TEST/src/test/java/org/apache/commons/jexl2/JexlEngineTest.java
(added)
+++ commons/proper/jexl/branches/COMMONS_JEXL_2_0_1_TEST/src/test/java/org/apache/commons/jexl2/JexlEngineTest.java
Sat Dec  3 11:10:19 2011
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.jexl2;
+
+import junit.framework.TestCase;
+
+public class JexlEngineTest extends TestCase {
+    
+    public void testEngine() {
+        JexlEngine je;
+        je = new JexlEngine();
+        assertNotNull(je);
+        je.createInfo("test", 1, 2); // fails with NoSuchMethodError on 2.1 currently
+    }
+    
+    public void testExtend() {
+        JexlEngine je;
+        je = new JexlEngine() {
+            @Override
+            protected
+            JexlInfo createInfo(String s, int i , int j){
+                return new DebugInfo(s, i, j);
+            }
+        };
+        assertNotNull(je);
+        je.createInfo("test", 1, 2); // fails with NoSuchMethodError on 2.1 currently
+    }
+
+}

Propchange: commons/proper/jexl/branches/COMMONS_JEXL_2_0_1_TEST/src/test/java/org/apache/commons/jexl2/JexlEngineTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/proper/jexl/branches/COMMONS_JEXL_2_0_1_TEST/src/test/java/org/apache/commons/jexl2/JexlEngineTest.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision



Mime
View raw message