diff options
Diffstat (limited to 'tests/test-extensions/net/sourceforge/jnlp')
-rw-r--r-- | tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java b/tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java index e9f4238..31e81ad 100644 --- a/tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java +++ b/tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java @@ -61,6 +61,7 @@ import net.sourceforge.jnlp.browsertesting.Browsers; import net.sourceforge.jnlp.closinglisteners.AutoErrorClosingListener; import net.sourceforge.jnlp.closinglisteners.AutoOkClosingListener; import net.sourceforge.jnlp.util.FileUtils; +import net.sourceforge.jnlp.util.logging.OutputController; import org.junit.Assert; /** @@ -756,16 +757,7 @@ public class ServerAccess { logException(t, true); } public static void logException(Throwable t, boolean print){ - try{ - StringWriter sw = new StringWriter(); - PrintWriter pw = new PrintWriter(sw); - t.printStackTrace(pw); - log(sw.toString(), false, print); - pw.close(); - sw.close(); - }catch(Exception ex){ - throw new RuntimeException(ex); - } + log(OutputController.exceptionToString(t), false, print); } private static StackTraceElement getTestMethod() { |