diff options
author | Jiri Vanek <[email protected]> | 2013-12-20 15:23:08 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-12-20 15:23:08 +0100 |
commit | b498f0bd16cb77a6082e2bb797d8f4daec07c345 (patch) | |
tree | 466eb30b20e7a5a685bb535c95723ae8726e0eac /tests | |
parent | b616acb51f3bb0217cd24f6018650504dbc40727 (diff) |
Rewritten java console
Diffstat (limited to 'tests')
-rw-r--r-- | tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java | 1 | ||||
-rw-r--r-- | tests/netx/unit/net/sourceforge/jnlp/util/logging/JavaConsoleTest.java | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java b/tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java index b4c0079..c4c66eb 100644 --- a/tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java +++ b/tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java @@ -41,7 +41,6 @@ import java.io.File; import java.io.IOException; import java.io.PrintStream; import java.io.UnsupportedEncodingException; -import java.lang.reflect.Method; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URISyntaxException; diff --git a/tests/netx/unit/net/sourceforge/jnlp/util/logging/JavaConsoleTest.java b/tests/netx/unit/net/sourceforge/jnlp/util/logging/JavaConsoleTest.java index b4ab4c8..38997e3 100644 --- a/tests/netx/unit/net/sourceforge/jnlp/util/logging/JavaConsoleTest.java +++ b/tests/netx/unit/net/sourceforge/jnlp/util/logging/JavaConsoleTest.java @@ -5,8 +5,8 @@ package net.sourceforge.jnlp.util.logging; -import net.sourceforge.jnlp.util.logging.headers.PluginMessage; import java.util.Date; +import net.sourceforge.jnlp.util.logging.headers.PluginMessage; import org.junit.Assert; import org.junit.Test; @@ -50,8 +50,8 @@ public class JavaConsoleTest { Assert.assertEquals(OutputController.Level.WARNING_ALL,p2.header.level); Assert.assertTrue(p2.header.date.toString().contains(new Date().toString().substring(0,16))); //means no Tue Nov 19 09:43:50 :) Assert.assertTrue(p2.header.user.equals("jvanek")); - Assert.assertTrue(p2.header.thread1 == null); - Assert.assertTrue(p2.header.thread2 == null); + Assert.assertTrue(p2.header.thread1.equals("unknown")); + Assert.assertTrue(p2.header.thread2.equals("unknown")); } |