svn commit: r1717 - logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action

Author: ceki Date: Fri Jul 18 22:11:22 2008 New Revision: 1717 Modified: logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action/IncludeActionTest.java Log: - apparently [1] if the test method starts with test, surefire will consider the test as junit 3.8 and will not call any methods annotated with @Before. Sigh. [1] http://mail-archives.apache.org/mod_mbox/maven-users/200705.mbox/%3C394431.6... 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 22:11:22 2008 @@ -3,11 +3,7 @@ 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; @@ -71,9 +67,7 @@ @Before public void setUp() throws Exception { - System.out.print("**** IncAction.reset"); IncAction.reset(); - System.out.print("*** after reset = "+IncAction.beginCount); } @After @@ -100,11 +94,9 @@ } @Test - public void testBasicURL() throws JoranException { - System.out.print("*** Before doConfig = "+IncAction.beginCount); + public void basicURL() throws JoranException { System.setProperty(INCLUDE_KEY, URL_TO_INCLUDE); tc.doConfigure(TOP_BY_URL); - System.out.println("*** After doConfig = "+IncAction.beginCount); StatusPrinter.print(context); verifyConfig(2); }
participants (1)
-
noreply.ceki@qos.ch