From 5c516c9e7b6519de75b68b096f65981aafa31392 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Fri, 28 Oct 2011 09:12:29 -0700 Subject: [PATCH] Making fixes to StdErrLogTest --- .../org/eclipse/jetty/util/log/NamedLogTest.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/jetty-util/src/test/java/org/eclipse/jetty/util/log/NamedLogTest.java b/jetty-util/src/test/java/org/eclipse/jetty/util/log/NamedLogTest.java index 0f8322869e2..dc1a86e84a1 100644 --- a/jetty-util/src/test/java/org/eclipse/jetty/util/log/NamedLogTest.java +++ b/jetty-util/src/test/java/org/eclipse/jetty/util/log/NamedLogTest.java @@ -27,12 +27,12 @@ public class NamedLogTest Red red = new Red(); Green green = new Green(); Blue blue = new Blue(); - + StdErrCapture output = new StdErrCapture(); - - setLoggerOptions(Red.class, output); - setLoggerOptions(Green.class, output); - setLoggerOptions(Blue.class, output); + + setLoggerOptions(Red.class,output); + setLoggerOptions(Green.class,output); + setLoggerOptions(Blue.class,output); red.generateLogs(); green.generateLogs(); @@ -47,8 +47,9 @@ public class NamedLogTest { Logger logger = Log.getLogger(clazz); logger.setDebugEnabled(true); - - if(logger instanceof StdErrLog) { + + if (logger instanceof StdErrLog) + { StdErrLog sel = (StdErrLog)logger; sel.setPrintLongNames(true); output.capture(sel);