Author: sebb
Date: Thu Oct 14 01:25:39 2010
New Revision: 1022346
URL: http://svn.apache.org/viewvc?rev=1022346&view=rev
Log:
Let JUnit report the Exception (if it occurs)
Modified:
commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java
Modified:
commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java
URL:
http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java?rev=1022346&r1=1022345&r2=1022346&view=diff
==============================================================================
---
commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java
(original)
+++
commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java
Thu Oct 14 01:25:39 2010
@@ -569,7 +569,7 @@ public class TestGenericObjectPool exten
}
@Test
- public void testMaxActiveUnderLoad() {
+ public void testMaxActiveUnderLoad() throws Exception {
// Config
int numThreads = 199; // And main thread makes a round 200.
int numIter = 20;
@@ -618,10 +618,6 @@ public class TestGenericObjectPool exten
} catch(InterruptedException e) {
// ignored
}
- } catch (Exception e) {
- // Shouldn't happen
- e.printStackTrace();
- fail("Exception on borrow");
} finally {
if (obj != null) {
try {