You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2011/06/01 13:06:39 UTC

svn commit: r1130099 - /commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/CacheTest.java

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;