aboutsummaryrefslogtreecommitdiffstats
path: root/tests/netx/unit
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-11-13 10:05:32 +0100
committerJiri Vanek <[email protected]>2013-11-13 10:05:32 +0100
commit4c33f8335773f823825086b6088765195d5cd06f (patch)
treefa6eba9214bfcc2a7567af248be4105ac805aabd /tests/netx/unit
parent1c0876d0d5afafdd6472fbb873a5472fb62adf0a (diff)
Added test-extension to silence stdout/err of itw when run from junit
Diffstat (limited to 'tests/netx/unit')
-rw-r--r--tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java3
-rw-r--r--tests/netx/unit/net/sourceforge/jnlp/ParserBasic.java7
-rw-r--r--tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java5
3 files changed, 6 insertions, 9 deletions
diff --git a/tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java b/tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java
index 8285df2..d647364 100644
--- a/tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java
+++ b/tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java
@@ -47,11 +47,12 @@ import java.util.Map;
import net.sourceforge.jnlp.JNLPFile.Match;
import net.sourceforge.jnlp.annotations.Bug;
import net.sourceforge.jnlp.mock.MockJNLPFile;
+import net.sourceforge.jnlp.util.logging.NoStdOutErrTest;
import org.junit.Assert;
import org.junit.Test;
-public class JNLPFileTest {
+public class JNLPFileTest extends NoStdOutErrTest{
Locale jvmLocale = new Locale("en", "CA", "utf8");
MockJNLPFile file = new MockJNLPFile(jvmLocale);
diff --git a/tests/netx/unit/net/sourceforge/jnlp/ParserBasic.java b/tests/netx/unit/net/sourceforge/jnlp/ParserBasic.java
index 048e517..c5f32dc 100644
--- a/tests/netx/unit/net/sourceforge/jnlp/ParserBasic.java
+++ b/tests/netx/unit/net/sourceforge/jnlp/ParserBasic.java
@@ -37,20 +37,17 @@ exception statement from your version.
package net.sourceforge.jnlp;
-import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.List;
-import net.sourceforge.jnlp.runtime.CodeBaseClassLoaderTest;
import net.sourceforge.jnlp.mock.DummyJNLPFile;
+import net.sourceforge.jnlp.util.logging.NoStdOutErrTest;
-import org.junit.After;
import org.junit.Assert;
-import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
/** Test that the parser works with basic jnlp files */
-public class ParserBasic {
+public class ParserBasic extends NoStdOutErrTest{
private static Node root;
private static Parser parser;
diff --git a/tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java b/tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java
index 49da8d5..e713512 100644
--- a/tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java
+++ b/tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java
@@ -42,9 +42,7 @@ import static org.junit.Assert.assertFalse;
import static org.junit.Assert.fail;
import java.io.File;
-import java.util.ArrayList;
import java.util.Arrays;
-import java.util.List;
import java.util.jar.Attributes;
import java.util.jar.Manifest;
@@ -52,10 +50,11 @@ import net.sourceforge.jnlp.LaunchException;
import net.sourceforge.jnlp.cache.UpdatePolicy;
import net.sourceforge.jnlp.mock.DummyJNLPFileWithJar;
import net.sourceforge.jnlp.util.FileTestUtils;
+import net.sourceforge.jnlp.util.logging.NoStdOutErrTest;
import org.junit.Test;
-public class JNLPClassLoaderTest {
+public class JNLPClassLoaderTest extends NoStdOutErrTest{
/* Note: Only does file leak testing for now. */
@Test