Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Bordet2015-03-06 11:49:52 +0000
committerSimone Bordet2015-03-07 21:32:59 +0000
commita13a55e242e34a1b1e788a34f37134bbfc3b880e (patch)
tree4a8eb29107164461abb12ce279a0dfa815ea6dd0 /jetty-websocket
parentdd88d393e4aaf6b234c1dc00326941e7d34b6f92 (diff)
downloadorg.eclipse.jetty.project-a13a55e242e34a1b1e788a34f37134bbfc3b880e.tar.gz
org.eclipse.jetty.project-a13a55e242e34a1b1e788a34f37134bbfc3b880e.tar.xz
org.eclipse.jetty.project-a13a55e242e34a1b1e788a34f37134bbfc3b880e.zip
Introduced LeakDetector.id() to be consistent in logging the resource ID.
Diffstat (limited to 'jetty-websocket')
-rw-r--r--jetty-websocket/websocket-common/src/test/java/org/eclipse/jetty/websocket/common/test/LeakTrackingBufferPoolRule.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/jetty-websocket/websocket-common/src/test/java/org/eclipse/jetty/websocket/common/test/LeakTrackingBufferPoolRule.java b/jetty-websocket/websocket-common/src/test/java/org/eclipse/jetty/websocket/common/test/LeakTrackingBufferPoolRule.java
index a6c7a5c377..49224edf52 100644
--- a/jetty-websocket/websocket-common/src/test/java/org/eclipse/jetty/websocket/common/test/LeakTrackingBufferPoolRule.java
+++ b/jetty-websocket/websocket-common/src/test/java/org/eclipse/jetty/websocket/common/test/LeakTrackingBufferPoolRule.java
@@ -18,15 +18,15 @@
package org.eclipse.jetty.websocket.common.test;
-import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
-
import org.eclipse.jetty.io.LeakTrackingByteBufferPool;
import org.eclipse.jetty.io.MappedByteBufferPool;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
+import static org.hamcrest.Matchers.is;
+import static org.junit.Assert.assertThat;
+
public class LeakTrackingBufferPoolRule extends LeakTrackingByteBufferPool implements TestRule
{
private final String id;
@@ -41,7 +41,7 @@ public class LeakTrackingBufferPoolRule extends LeakTrackingByteBufferPool imple
{
assertThat("Leaked Acquires Count for [" + id + "]",getLeakedAcquires(),is(0L));
assertThat("Leaked Releases Count for [" + id + "]",getLeakedReleases(),is(0L));
- assertThat("Leaked Unrelesed Count for [" + id + "]",getLeakedUnreleased(),is(0L));
+ assertThat("Leaked Resource Count for [" + id + "]", getLeakedResources(),is(0L));
}
@Override

Back to the top