Author: psteitz Date: Mon May 25 19:33:31 2009 New Revision: 778479 URL: http://svn.apache.org/viewvc?rev=778479&view=rev Log: Moved test case up in the file.
Modified: commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java Modified: commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java?rev=778479&r1=778478&r2=778479&view=diff ============================================================================== --- commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java (original) +++ commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericKeyedObjectPool.java Mon May 25 19:33:31 2009 @@ -211,6 +211,15 @@ // expected } } + + public void testWhenExhaustedGrow() throws Exception { + pool.setMaxActive(1); + pool.setMaxTotal(1); + pool.setWhenExhaustedAction(GenericObjectPool.WHEN_EXHAUSTED_GROW); + for (int i = 0; i < 10; i++) { + pool.borrowObject("a"); + } + } public void testMaxTotal() throws Exception { pool.setMaxActive(2); @@ -1458,14 +1467,6 @@ return false; } - public void testWhenExhaustedGrow() throws Exception { - pool.setMaxActive(1); - pool.setMaxTotal(1); - pool.setWhenExhaustedAction(GenericObjectPool.WHEN_EXHAUSTED_GROW); - for (int i = 0; i < 10; i++) { - pool.borrowObject("a"); - } - } }