diff options
author | Jiri Vanek <[email protected]> | 2012-05-28 11:00:49 +0200 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2012-05-28 11:00:49 +0200 |
commit | 056ac3746d71b2cd92d4643f136ed28a20765227 (patch) | |
tree | 9e6bea5b5afa80b9091c6bcc745bfc71f96bf92f /tests/netx/unit/net/sourceforge/jnlp/cache | |
parent | 1705caf0db175cb9537313e5c1d9df14186f5bea (diff) |
Get rid of repeated sout/serr in reproducers testcases/unit tests and introduce bottleneck for loging.
Diffstat (limited to 'tests/netx/unit/net/sourceforge/jnlp/cache')
-rw-r--r-- | tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java b/tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java index 7a8dc92..fbc6f95 100644 --- a/tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java +++ b/tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java @@ -40,6 +40,7 @@ package net.sourceforge.jnlp.cache; import static org.junit.Assert.assertTrue; import java.io.File; +import net.sourceforge.jnlp.ServerAccess; import net.sourceforge.jnlp.config.DeploymentConfiguration; import net.sourceforge.jnlp.runtime.JNLPRuntime; @@ -90,7 +91,7 @@ public class CacheLRUWrapperTest { } double avg = sum / time.length; - System.err.println("Average = " + avg + "ns"); + ServerAccess.logErrorReprint("Average = " + avg + "ns"); // wait more than 100 microseconds for noLoops = 1000 and noEntries=1000 is bad assertTrue("load() must not take longer than 100 µs, but took in avg " + avg/1000 + "µs", avg < 100 * 1000); |