commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1130099 - /commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/CacheTest.java
Date Wed, 01 Jun 2011 11:06:39 GMT
Author: sebb
Date: Wed Jun  1 11:06:39 2011
New Revision: 1130099

URL: http://svn.apache.org/viewvc?rev=1130099&view=rev
Log:
Quieten test

Modified:
    commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/CacheTest.java

Modified: commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/CacheTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/CacheTest.java?rev=1130099&r1=1130098&r2=1130099&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/CacheTest.java (original)
+++ commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/CacheTest.java Wed Jun
 1 11:06:39 2011
@@ -38,6 +38,12 @@ public class CacheTest extends JexlTestC
         jexl.setSilent(false);
     }
 
+    @Override
+    public void setUp() throws Exception {
+        // ensure jul logging is only error to avoid warning in silent mode
+        java.util.logging.Logger.getLogger(JexlEngine.class.getName()).setLevel(java.util.logging.Level.SEVERE);
+    }
+
     // LOOPS & THREADS
     private static final int LOOPS = 4096;
     private static final int NTHREADS = 4;
@@ -271,6 +277,7 @@ public class CacheTest extends JexlTestC
      * @param cache whether jexl cache is used or not
      * @throws Exception if anything goes wrong
      */
+    @SuppressWarnings("boxing")
     void runThreaded(Class<? extends Task> ctask, int loops, boolean cache) throws
Exception {
         if (loops == 0) {
             loops = MIX.length;



Mime
View raw message