You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/04/25 22:11:30 UTC
svn commit: r1096579 -
/commons/proper/pool/trunk/src/test/org/apache/commons/pool2/TestBasePoolableObjectFactory.java
Author: simonetripodi
Date: Mon Apr 25 20:11:30 2011
New Revision: 1096579
URL: http://svn.apache.org/viewvc?rev=1096579&view=rev
Log:
TestBasePoolableObjectFactory tests moved to JUnit4 annotations
Modified:
commons/proper/pool/trunk/src/test/org/apache/commons/pool2/TestBasePoolableObjectFactory.java
Modified: commons/proper/pool/trunk/src/test/org/apache/commons/pool2/TestBasePoolableObjectFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/org/apache/commons/pool2/TestBasePoolableObjectFactory.java?rev=1096579&r1=1096578&r2=1096579&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/test/org/apache/commons/pool2/TestBasePoolableObjectFactory.java (original)
+++ commons/proper/pool/trunk/src/test/org/apache/commons/pool2/TestBasePoolableObjectFactory.java Mon Apr 25 20:11:30 2011
@@ -16,20 +16,17 @@
*/
package org.apache.commons.pool2;
-import org.apache.commons.pool2.BasePoolableObjectFactory;
-import org.apache.commons.pool2.PoolableObjectFactory;
+import static junit.framework.Assert.assertTrue;
-import junit.framework.TestCase;
+import org.junit.Test;
/**
* @author Rodney Waldhoff
* @version $Revision$ $Date$
*/
-public class TestBasePoolableObjectFactory extends TestCase {
- public TestBasePoolableObjectFactory(String testName) {
- super(testName);
- }
+public class TestBasePoolableObjectFactory {
+ @Test
public void testDefaultMethods() throws Exception {
PoolableObjectFactory<Object> factory = new BasePoolableObjectFactory<Object>() {
@Override