aboutsummaryrefslogtreecommitdiffstats
path: root/tests/netx
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2012-05-16 17:01:46 +0200
committerJiri Vanek <[email protected]>2012-05-16 17:01:46 +0200
commit0c598ca6848b417c79245a971f26570d05144132 (patch)
tree1e87eda9a45eb9705553db7d2615f33a49221a7f /tests/netx
parent2abe2d3aac5295e26a7fd58253923d4677bd1562 (diff)
2012-05-14 Jiri Vanek <[email protected]>
* tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java: * tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java: System.out replaced with System.err + fixed tabs in previous changelog
Diffstat (limited to 'tests/netx')
-rw-r--r--tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java2
-rw-r--r--tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java8
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java b/tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java
index 584e4b7..7a8dc92 100644
--- a/tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java
+++ b/tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java
@@ -90,7 +90,7 @@ public class CacheLRUWrapperTest {
}
double avg = sum / time.length;
- System.out.println("Average = " + avg + "ns");
+ System.err.println("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);
diff --git a/tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java b/tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java
index f2ebc0e..2e2602a 100644
--- a/tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java
+++ b/tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java
@@ -86,13 +86,13 @@ public class CodeBaseClassLoaderTest {
classLoader.findResource("net/sourceforge/jnlp/about/Main.class");
stopTime = System.nanoTime();
long timeOnFirstTry = stopTime - startTime;
- System.out.println(timeOnFirstTry);
+ System.err.println(timeOnFirstTry);
startTime = System.nanoTime();
classLoader.findResource("net/sourceforge/jnlp/about/Main.class");
stopTime = System.nanoTime();
long timeOnSecondTry = stopTime - startTime;
- System.out.println(timeOnSecondTry);
+ System.err.println(timeOnSecondTry);
assertTrue(timeOnSecondTry < (timeOnFirstTry / 10));
}
@@ -128,13 +128,13 @@ public class CodeBaseClassLoaderTest {
classLoader.findResource("net/sourceforge/jnlp/about/Main_FOO_.class");
stopTime = System.nanoTime();
long timeOnFirstTry = stopTime - startTime;
- System.out.println(timeOnFirstTry);
+ System.err.println(timeOnFirstTry);
startTime = System.nanoTime();
classLoader.findResource("net/sourceforge/jnlp/about/Main_FOO_.class");
stopTime = System.nanoTime();
long timeOnSecondTry = stopTime - startTime;
- System.out.println(timeOnSecondTry);
+ System.err.println(timeOnSecondTry);
assertTrue(timeOnSecondTry < (timeOnFirstTry / 10));
}