/hg/icedtea-web: do DefaultLaunchHandlerTest unittest indepndent...
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Fri Nov 22 05:51:02 PST 2013
changeset bc73a1362e9c in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=bc73a1362e9c
author: Jiri Vanek <jvanek at redhat.com>
date: Fri Nov 22 12:12:48 2013 +0100
do DefaultLaunchHandlerTest unittest indepndent on system settings
diffstat:
ChangeLog | 5 +++++
tests/netx/unit/net/sourceforge/jnlp/DefaultLaunchHandlerTest.java | 9 +++++++++
2 files changed, 14 insertions(+), 0 deletions(-)
diffs (38 lines):
diff -r 956b6bd1b23e -r bc73a1362e9c ChangeLog
--- a/ChangeLog Thu Nov 14 13:15:46 2013 -0500
+++ b/ChangeLog Fri Nov 22 12:12:48 2013 +0100
@@ -1,3 +1,8 @@
+2013-11-22 Jiri Vanek <jvanek at redhat.com>
+
+ * tests/netx/unit/net/sourceforge/jnlp/DefaultLaunchHandlerTest.java: (init)
+ enable logging to streams if disabled.
+
2013-11-13 Andrew Azores <aazores at redhat.com>
* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: add
diff -r 956b6bd1b23e -r bc73a1362e9c tests/netx/unit/net/sourceforge/jnlp/DefaultLaunchHandlerTest.java
--- a/tests/netx/unit/net/sourceforge/jnlp/DefaultLaunchHandlerTest.java Thu Nov 14 13:15:46 2013 -0500
+++ b/tests/netx/unit/net/sourceforge/jnlp/DefaultLaunchHandlerTest.java Fri Nov 22 12:12:48 2013 +0100
@@ -42,6 +42,8 @@
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 @@
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() {
More information about the distro-pkg-dev
mailing list