Author: ebourg
Date: Sat Mar 25 00:34:19 2017
New Revision: 1788590

URL: http://svn.apache.org/viewvc?rev=1788590&view=rev
Log:
Added the missing @Test annotations in the JUnit 4 tests

Modified:
    
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/ArithmeticTest.java
    
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/ArrayAccessTest.java
    
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/AssignTest.java
    
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/LambdaTest.java

Modified: 
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/ArithmeticTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/ArithmeticTest.java?rev=1788590&r1=1788589&r2=1788590&view=diff
==============================================================================
--- 
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/ArithmeticTest.java
 (original)
+++ 
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/ArithmeticTest.java
 Sat Mar 25 00:34:19 2017
@@ -305,6 +305,7 @@ public class ArithmeticTest extends Jexl
     }
 
     // JEXL-24: doubles with exponent
+    @Test
     public void test2DoubleLiterals() throws Exception {
         JexlEvalContext ctxt = new JexlEvalContext();
         ctxt.setStrictArithmetic(true);
@@ -429,6 +430,7 @@ public class ArithmeticTest extends Jexl
         Assert.assertEquals(java.math.BigDecimal.class, r1.getClass());
     }
 
+    @Test
     public void testDivClass() throws Exception {
         JexlEngine jexl = new JexlBuilder().create();
         JexlContext jc = new MapContext();
@@ -440,6 +442,7 @@ public class ArithmeticTest extends Jexl
         Assert.assertEquals(java.math.BigDecimal.class, r1.getClass());
     }
 
+    @Test
     public void testPlusClass() throws Exception {
         JexlEngine jexl = new JexlBuilder().create();
         JexlContext jc = new MapContext();
@@ -451,6 +454,7 @@ public class ArithmeticTest extends Jexl
         Assert.assertEquals(java.math.BigDecimal.class, r1.getClass());
     }
 
+    @Test
     public void testMinusClass() throws Exception {
         JexlEngine jexl = new JexlBuilder().create();
         JexlContext jc = new MapContext();

Modified: 
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/ArrayAccessTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/ArrayAccessTest.java?rev=1788590&r1=1788589&r2=1788590&view=diff
==============================================================================
--- 
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/ArrayAccessTest.java
 (original)
+++ 
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/ArrayAccessTest.java
 Sat Mar 25 00:34:19 2017
@@ -59,6 +59,7 @@ public class ArrayAccessTest extends Jex
     /**
      * test simple array access
      */
+    @Test
     public void testArrayAccess() throws Exception {
 
         /*
@@ -190,6 +191,7 @@ public class ArrayAccessTest extends Jex
         asserter.assertExpression("foo.0.1", "three");
     }
 
+    @Test
     public void testArrayProperty() throws Exception {
         Foo foo = new Foo();
 
@@ -202,6 +204,7 @@ public class ArrayAccessTest extends Jex
     }
 
     // This is JEXL-26
+    @Test
     public void testArrayAndDottedConflict() throws Exception {
         Object[] objects = new Object[] {"an", "array", new Long(0)};
         asserter.setStrict(false);
@@ -216,6 +219,7 @@ public class ArrayAccessTest extends Jex
         asserter.assertExpression("base.objects.1.status", null);
     }
 
+    @Test
     public void testArrayIdentifierParsing() throws Exception {
         Map<Object, Number> map = new HashMap<Object, Number>();
         map.put("00200", -42.42d);
@@ -228,6 +232,7 @@ public class ArrayAccessTest extends Jex
         asserter.assertExpression("objects.200", 42.42d);
     }
 
+    @Test
     public void testArrayMethods() throws Exception {
         Object[] objects = new Object[] {"an", "array", new Long(0)};
 
@@ -239,6 +244,7 @@ public class ArrayAccessTest extends Jex
         asserter.assertExpression("objects[1]", "dion");
     }
 
+    @Test
     public void testArrayArray() throws Exception {
         Integer i42 = Integer.valueOf(42);
         Integer i43 = Integer.valueOf(43);

Modified: 
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/AssignTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/AssignTest.java?rev=1788590&r1=1788589&r2=1788590&view=diff
==============================================================================
--- 
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/AssignTest.java
 (original)
+++ 
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/AssignTest.java
 Sat Mar 25 00:34:19 2017
@@ -109,6 +109,7 @@ public class AssignTest extends JexlTest
         Assert.assertEquals("Result is not 10", new Integer(10), o);
     }
 
+    @Test
     public void testAmbiguous() throws Exception {
         JexlExpression assign = JEXL.createExpression("froboz.nosuchbean = 
10");
         JexlContext jc = new MapContext();

Modified: 
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/LambdaTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/LambdaTest.java?rev=1788590&r1=1788589&r2=1788590&view=diff
==============================================================================
--- 
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/LambdaTest.java
 (original)
+++ 
commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl3/LambdaTest.java
 Sat Mar 25 00:34:19 2017
@@ -33,6 +33,7 @@ public class LambdaTest extends JexlTest
         super("LambdaTest");
     }
 
+    @Test
     public void testScriptArguments() throws Exception {
         JexlEngine jexl = new Engine();
         JexlScript s = jexl.createScript(" x + x ", "x");


Reply via email to