You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2012/04/24 20:40:32 UTC

svn commit: r1329922 - /commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/TestPoolUtils.java

Author: markt
Date: Tue Apr 24 18:40:32 2012
New Revision: 1329922

URL: http://svn.apache.org/viewvc?rev=1329922&view=rev
Log:
Alternative fix suggested by sebb

Modified:
    commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/TestPoolUtils.java

Modified: commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/TestPoolUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/TestPoolUtils.java?rev=1329922&r1=1329921&r2=1329922&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/TestPoolUtils.java (original)
+++ commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/TestPoolUtils.java Tue Apr 24 18:40:32 2012
@@ -33,6 +33,7 @@ import java.util.Map;
 import java.util.Set;
 import java.util.TimerTask;
 
+import junit.framework.Assert;
 import junit.framework.AssertionFailedError;
 
 import org.apache.commons.pool2.impl.GenericKeyedObjectPool;
@@ -56,10 +57,9 @@ public class TestPoolUtils {
     /** Sleep time to let the minIdle tests run CHECK_COUNT times. */
     private static final int CHECK_SLEEP_PERIOD = CHECK_PERIOD * (CHECK_COUNT - 1) + CHECK_PERIOD / 2;
 
-    @SuppressWarnings("unused")
     @Test
     public void testJavaBeanInstantiation() {
-        new PoolUtils();
+        Assert.assertNotNull(new PoolUtils());
     }
 
     @Test