commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1222396 [2/2] - in /commons/proper/pool/branches/POOL_1_X/src: java/org/apache/commons/pool/ java/org/apache/commons/pool/impl/ test/org/apache/commons/pool/ test/org/apache/commons/pool/impl/
Date Thu, 22 Dec 2011 19:02:26 GMT
Modified: commons/proper/pool/branches/POOL_1_X/src/test/org/apache/commons/pool/impl/TestStackObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/branches/POOL_1_X/src/test/org/apache/commons/pool/impl/TestStackObjectPool.java?rev=1222396&r1=1222395&r2=1222396&view=diff
==============================================================================
--- commons/proper/pool/branches/POOL_1_X/src/test/org/apache/commons/pool/impl/TestStackObjectPool.java
(original)
+++ commons/proper/pool/branches/POOL_1_X/src/test/org/apache/commons/pool/impl/TestStackObjectPool.java
Thu Dec 22 19:02:25 2011
@@ -37,14 +37,17 @@ public class TestStackObjectPool extends
         super(testName);
     }
 
+    @Override
     protected ObjectPool<String> makeEmptyPool(int mincap) {
         return new StackObjectPool<String>(new SimpleFactory());
     }
 
+    @Override
     protected ObjectPool<Integer> makeEmptyPool(final PoolableObjectFactory<Integer>
factory) {
         return new StackObjectPool<Integer>(factory);
     }
 
+    @Override
     protected String getNthObject(int n) {
         return String.valueOf(n);
     }
@@ -67,6 +70,7 @@ public class TestStackObjectPool extends
     /**
      * @deprecated - to be removed in pool 2.0
      */
+    @Deprecated
     public void testPoolWithNullFactory() throws Exception {
         ObjectPool<Integer> pool = new StackObjectPool<Integer>(10);
         for(int i=0;i<10;i++) {
@@ -93,6 +97,7 @@ public class TestStackObjectPool extends
     /**
      * @deprecated - to be removed in pool 2.0
      */
+    @Deprecated
     public void testBorrowFromEmptyPoolWithNullFactory() throws Exception {
         ObjectPool<Object> pool = new StackObjectPool<Object>();
         try {
@@ -106,6 +111,8 @@ public class TestStackObjectPool extends
     /**
      * @deprecated - to be removed in pool 2.0
      */
+    @Deprecated
+    @Override
     public void testSetFactory() throws Exception {
         ObjectPool<String> pool = new StackObjectPool<String>();
         try {
@@ -123,6 +130,7 @@ public class TestStackObjectPool extends
     /**
      * @deprecated - to be removed in pool 2.0
      */
+    @Deprecated
     public void testCantResetFactoryWithActiveObjects() throws Exception {
         ObjectPool<String> pool = new StackObjectPool<String>();
         pool.setFactory(new SimpleFactory());
@@ -140,6 +148,7 @@ public class TestStackObjectPool extends
     /**
      * @deprecated - to be removed in pool 2.0
      */
+    @Deprecated
     public void testCanResetFactoryWithoutActiveObjects() throws Exception {
         ObjectPool<String> pool = new StackObjectPool<String>();
         {
@@ -460,6 +469,7 @@ public class TestStackObjectPool extends
      * Verifies close contract - idle instances are destroyed, returning instances
      * are destroyed, add/borrowObject throw IllegalStateException.
      */
+    @Override
     public void testClose() throws Exception {
         SelectiveFactory factory = new SelectiveFactory();
         ObjectPool<Integer> pool = new StackObjectPool<Integer>(factory);
@@ -611,10 +621,12 @@ public class TestStackObjectPool extends
         }
     }
 
+    @Override
     protected boolean isLifo() {
         return true;
     }
 
+    @Override
     protected boolean isFifo() {
         return false;
     }

Modified: commons/proper/pool/branches/POOL_1_X/src/test/org/apache/commons/pool/impl/TestStackObjectPoolFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/branches/POOL_1_X/src/test/org/apache/commons/pool/impl/TestStackObjectPoolFactory.java?rev=1222396&r1=1222395&r2=1222396&view=diff
==============================================================================
--- commons/proper/pool/branches/POOL_1_X/src/test/org/apache/commons/pool/impl/TestStackObjectPoolFactory.java
(original)
+++ commons/proper/pool/branches/POOL_1_X/src/test/org/apache/commons/pool/impl/TestStackObjectPoolFactory.java
Thu Dec 22 19:02:25 2011
@@ -33,6 +33,7 @@ public class TestStackObjectPoolFactory 
         super(name);
     }
 
+    @Override
     protected ObjectPoolFactory<Integer> makeFactory(final PoolableObjectFactory<Integer>
objectFactory) throws UnsupportedOperationException {
         return new StackObjectPoolFactory<Integer>(objectFactory);
     }



Mime
View raw message