cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r1448476 - /cocoon/cocoon3/trunk/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/calendar/CalendarGeneratorTest.java
Date Wed, 20 Feb 2013 23:58:55 GMT
Author: thorsten
Date: Wed Feb 20 23:58:55 2013
New Revision: 1448476

URL: http://svn.apache.org/r1448476
Log:
Using logger and not sysout

Modified:
    cocoon/cocoon3/trunk/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/calendar/CalendarGeneratorTest.java

Modified: cocoon/cocoon3/trunk/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/calendar/CalendarGeneratorTest.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/calendar/CalendarGeneratorTest.java?rev=1448476&r1=1448475&r2=1448476&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/calendar/CalendarGeneratorTest.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/calendar/CalendarGeneratorTest.java
Wed Feb 20 23:58:55 2013
@@ -28,10 +28,16 @@ import org.apache.cocoon.sax.SAXPipeline
 import org.apache.cocoon.sax.component.XMLSerializer;
 import org.custommonkey.xmlunit.examples.CountingNodeTester;
 import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.w3c.dom.Node;
 
 public class CalendarGeneratorTest {
-
+    /**
+     * Logger.
+     */
+    private static final Logger LOG = LoggerFactory
+            .getLogger(CalendarGeneratorTest.class);
     @Test
     public void testPipelineWithCalendarGenerator() throws Exception {
         Pipeline<SAXPipelineComponent> pipeline = new NonCachingPipeline<SAXPipelineComponent>();
@@ -50,7 +56,7 @@ public class CalendarGeneratorTest {
         pipeline.execute();
         CountingNodeTester countingNodeTester = new CountingNodeTester(37);
         String out = new String(baos.toByteArray());
-        System.out.println(out);
+        LOG.debug(out);
         assertNodeTestPasses(out, countingNodeTester, Node.ELEMENT_NODE);
     }
 



Mime
View raw message