commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r835456 - /commons/proper/jexl/branches/1.x/src/test/org/apache/commons/jexl/ParseFailuresTest.java
Date Thu, 12 Nov 2009 17:18:30 GMT
Author: sebb
Date: Thu Nov 12 17:18:29 2009
New Revision: 835456

URL: http://svn.apache.org/viewvc?rev=835456&view=rev
Log:
Eol-style

Modified:
    commons/proper/jexl/branches/1.x/src/test/org/apache/commons/jexl/ParseFailuresTest.java
  (contents, props changed)

Modified: commons/proper/jexl/branches/1.x/src/test/org/apache/commons/jexl/ParseFailuresTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/1.x/src/test/org/apache/commons/jexl/ParseFailuresTest.java?rev=835456&r1=835455&r2=835456&view=diff
==============================================================================
--- commons/proper/jexl/branches/1.x/src/test/org/apache/commons/jexl/ParseFailuresTest.java
(original)
+++ commons/proper/jexl/branches/1.x/src/test/org/apache/commons/jexl/ParseFailuresTest.java
Thu Nov 12 17:18:29 2009
@@ -1,102 +1,102 @@
-/**
- * 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.jexl;
-
-import junit.framework.TestCase;
-
-import org.apache.commons.jexl.parser.ParseException;
-
-/**
- * Tests for malformed expressions and scripts.
- * ({@link ExpressionFactory} and {@link ScriptFactory} should throw
- * {@link ParseException}s).
- *
- * @since 1.1
- */
-public class ParseFailuresTest extends TestCase {
-
-    /**
-     * Create the test.
-     *
-     * @param testName name of the test
-     */
-    public ParseFailuresTest(String testName) {
-        super(testName);
-    }
-
-    public void testMalformedExpression1() throws Exception {
-        // this will throw a ParseException
-        String badExpression = "eq";
-        try {
-            ExpressionFactory.createExpression(badExpression);
-            fail("Parsing \"" + badExpression
-                + "\" should result in a ParseException");
-        } catch (ParseException pe) {
-            // expected
-        }
-    }
-
-    public void testMalformedExpression2() throws Exception {
-        // this will throw a TokenMgrErr, which we rethrow as a ParseException
-        String badExpression = "?";
-        try {
-            ExpressionFactory.createExpression(badExpression);
-            fail("Parsing \"" + badExpression
-                + "\" should result in a ParseException");
-        } catch (ParseException pe) {
-            // expected
-        }
-    }
-
-    public void testMalformedScript1() throws Exception {
-        // this will throw a TokenMgrErr, which we rethrow as a ParseException
-        String badScript = "eq";
-        try {
-            ScriptFactory.createScript(badScript);
-            fail("Parsing \"" + badScript
-                + "\" should result in a ParseException");
-        } catch (ParseException pe) {
-            // expected
-        }
-    }
-
-
-    public void testMalformedScript2() throws Exception {
-        // this will throw a TokenMgrErr, which we rethrow as a ParseException
-        String badScript = "?";
-        try {
-            ScriptFactory.createScript(badScript);
-            fail("Parsing \"" + badScript
-                + "\" should result in a ParseException");
-        } catch (ParseException pe) {
-            // expected
-        }
-    }
-
-    public void testMalformedScript3() throws Exception {
-        // this will throw a TokenMgrErr, which we rethrow as a ParseException
-        String badScript = "foo=1;bar=2;a?b:c;";
-        try {
-            ScriptFactory.createScript(badScript);
-            fail("Parsing \"" + badScript
-                + "\" should result in a ParseException");
-        } catch (ParseException pe) {
-            // expected
-        }
-    }
-
-}
+/**
+ * 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.jexl;
+
+import junit.framework.TestCase;
+
+import org.apache.commons.jexl.parser.ParseException;
+
+/**
+ * Tests for malformed expressions and scripts.
+ * ({@link ExpressionFactory} and {@link ScriptFactory} should throw
+ * {@link ParseException}s).
+ *
+ * @since 1.1
+ */
+public class ParseFailuresTest extends TestCase {
+
+    /**
+     * Create the test.
+     *
+     * @param testName name of the test
+     */
+    public ParseFailuresTest(String testName) {
+        super(testName);
+    }
+
+    public void testMalformedExpression1() throws Exception {
+        // this will throw a ParseException
+        String badExpression = "eq";
+        try {
+            ExpressionFactory.createExpression(badExpression);
+            fail("Parsing \"" + badExpression
+                + "\" should result in a ParseException");
+        } catch (ParseException pe) {
+            // expected
+        }
+    }
+
+    public void testMalformedExpression2() throws Exception {
+        // this will throw a TokenMgrErr, which we rethrow as a ParseException
+        String badExpression = "?";
+        try {
+            ExpressionFactory.createExpression(badExpression);
+            fail("Parsing \"" + badExpression
+                + "\" should result in a ParseException");
+        } catch (ParseException pe) {
+            // expected
+        }
+    }
+
+    public void testMalformedScript1() throws Exception {
+        // this will throw a TokenMgrErr, which we rethrow as a ParseException
+        String badScript = "eq";
+        try {
+            ScriptFactory.createScript(badScript);
+            fail("Parsing \"" + badScript
+                + "\" should result in a ParseException");
+        } catch (ParseException pe) {
+            // expected
+        }
+    }
+
+
+    public void testMalformedScript2() throws Exception {
+        // this will throw a TokenMgrErr, which we rethrow as a ParseException
+        String badScript = "?";
+        try {
+            ScriptFactory.createScript(badScript);
+            fail("Parsing \"" + badScript
+                + "\" should result in a ParseException");
+        } catch (ParseException pe) {
+            // expected
+        }
+    }
+
+    public void testMalformedScript3() throws Exception {
+        // this will throw a TokenMgrErr, which we rethrow as a ParseException
+        String badScript = "foo=1;bar=2;a?b:c;";
+        try {
+            ScriptFactory.createScript(badScript);
+            fail("Parsing \"" + badScript
+                + "\" should result in a ParseException");
+        } catch (ParseException pe) {
+            // expected
+        }
+    }
+
+}

Propchange: commons/proper/jexl/branches/1.x/src/test/org/apache/commons/jexl/ParseFailuresTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message