diff options
Diffstat (limited to 'tests/netx/unit/net/sourceforge/jnlp')
-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() { |