diff options
author | Jiri Vanek <[email protected]> | 2013-11-22 12:12:48 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-11-22 12:12:48 +0100 |
commit | b8bf378b9b7887e273c4aa86aad85ecfd2f28b1f (patch) | |
tree | 6bbb81b7a67490ab848155a168c2e9e14b08abbb /tests/netx/unit/net/sourceforge | |
parent | ac1608c2b58daa859a55d6d840e49938a2abd903 (diff) |
do DefaultLaunchHandlerTest unittest indepndent on system settings
Diffstat (limited to 'tests/netx/unit/net/sourceforge')
-rw-r--r-- | tests/netx/unit/net/sourceforge/jnlp/DefaultLaunchHandlerTest.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/netx/unit/net/sourceforge/jnlp/DefaultLaunchHandlerTest.java b/tests/netx/unit/net/sourceforge/jnlp/DefaultLaunchHandlerTest.java index 7a68c74..d4529b9 100644 --- a/tests/netx/unit/net/sourceforge/jnlp/DefaultLaunchHandlerTest.java +++ b/tests/netx/unit/net/sourceforge/jnlp/DefaultLaunchHandlerTest.java @@ -42,6 +42,8 @@ import static org.junit.Assert.assertTrue; import java.io.ByteArrayOutputStream; import java.io.PrintStream; +import java.lang.reflect.Field; +import net.sourceforge.jnlp.util.logging.LogConfig; import net.sourceforge.jnlp.util.logging.OutputController; import org.junit.Test; @@ -63,6 +65,13 @@ public class DefaultLaunchHandlerTest { LocalLogger() { super(new AccessibleStream(new ByteArrayOutputStream()), new AccessibleStream(new ByteArrayOutputStream())); + try{ + Field f = LogConfig.class.getDeclaredField("logToStreams"); + f.setAccessible(true); + f.set(LogConfig.getLogConfig(), true); + }catch(Exception ex){ + ServerAccess.logException(ex); + } } public String getStream1() { |