summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-11-14 11:34:43 (EST)
committerEike Stepper2007-11-14 11:34:43 (EST)
commit3f34d804d76ac5f648400c38452d4c04681e5a19 (patch)
tree82f3add29ad967748f6da335fce921e6e5b5851c
parentcfd94a8fcf873c3a49d158ba1037fdb2ab07911a (diff)
downloadcdo-3f34d804d76ac5f648400c38452d4c04681e5a19.zip
cdo-3f34d804d76ac5f648400c38452d4c04681e5a19.tar.gz
cdo-3f34d804d76ac5f648400c38452d4c04681e5a19.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/AllTests.java2
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/BufferPoolTest.java (renamed from plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TestBufferPool.java)13
2 files changed, 11 insertions, 4 deletions
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/AllTests.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/AllTests.java
index 1cfa1cb..e082b34 100644
--- a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/AllTests.java
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/AllTests.java
@@ -30,7 +30,7 @@ public class AllTests
suite.addTestSuite(MonitorTest.class);
suite.addTestSuite(SortedFileMapTest.class);
suite.addTestSuite(SynchronizingCorrelatorTest.class);
- suite.addTestSuite(TestBufferPool.class);
+ suite.addTestSuite(BufferPoolTest.class);
// suite.addTestSuite(SecurityTest.class);
// TODO suite.addTestSuite(ConnectorTest.class);
// $JUnit-END$
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TestBufferPool.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/BufferPoolTest.java
index dd18f75..7639477 100644
--- a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/TestBufferPool.java
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/tests/BufferPoolTest.java
@@ -24,12 +24,19 @@ import java.util.Collection;
/**
* @author Eike Stepper
*/
-public class TestBufferPool extends AbstractOMTest
+public class BufferPoolTest extends AbstractOMTest
{
private static IBufferPool bufferPool = Net4jUtil.createBufferPool();
private static Collection<byte[]> memory = new ArrayList<byte[]>();
+ @Override
+ protected void doTearDown() throws Exception
+ {
+ memory.clear();
+ super.doTearDown();
+ }
+
public void testBufferPool() throws Exception
{
LifecycleUtil.activate(bufferPool);
@@ -57,7 +64,7 @@ public class TestBufferPool extends AbstractOMTest
private static void msg()
{
- IOUtil.OUT().println("pooledBuffers = " + Net4jUtil.getPooledBuffers(bufferPool));
+ msg("pooledBuffers = " + Net4jUtil.getPooledBuffers(bufferPool));
}
private static boolean allocate()
@@ -73,7 +80,7 @@ public class TestBufferPool extends AbstractOMTest
msg();
return true;
}
- catch (Exception ex)
+ catch (Throwable t)
{
return false;
}