[logback-dev] svn commit: r1713 - logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Fri Jul 18 21:39:57 CEST 2008
Author: ceki
Date: Fri Jul 18 21:39:57 2008
New Revision: 1713
Modified:
logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action/IncludeActionTest.java
Log:
- Debugging IncludeActionTest which fails under continuum
Modified: logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action/IncludeActionTest.java
==============================================================================
--- logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action/IncludeActionTest.java (original)
+++ logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action/IncludeActionTest.java Fri Jul 18 21:39:57 2008
@@ -3,7 +3,11 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
+import java.io.ByteArrayOutputStream;
import java.io.FileNotFoundException;
+import java.io.PrintStream;
+import java.io.PrintWriter;
+import java.io.StringWriter;
import java.net.MalformedURLException;
import java.net.UnknownHostException;
import java.util.HashMap;
@@ -97,7 +101,11 @@
public void testBasicURL() throws JoranException {
System.setProperty(INCLUDE_KEY, URL_TO_INCLUDE);
tc.doConfigure(TOP_BY_URL);
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ PrintStream ps = new PrintStream(baos);
+ StatusPrinter.setPrintStream(ps);
StatusPrinter.print(context);
+ if(1==1)throw new JoranException(new String(baos.toByteArray()));
verifyConfig(2);
}
More information about the logback-dev
mailing list