geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r420362 - /geronimo/sandbox/svkmerge/m2migration/modules/web-builder/src/test/org/apache/geronimo/web/deployment/GenericToSpecificPlanConverterTest.java
Date Sun, 09 Jul 2006 22:38:16 GMT
Author: jdillon
Date: Sun Jul  9 15:38:15 2006
New Revision: 420362

URL: http://svn.apache.org/viewvc?rev=420362&view=rev
Log:
Using logging instead of System.*

Modified:
    geronimo/sandbox/svkmerge/m2migration/modules/web-builder/src/test/org/apache/geronimo/web/deployment/GenericToSpecificPlanConverterTest.java

Modified: geronimo/sandbox/svkmerge/m2migration/modules/web-builder/src/test/org/apache/geronimo/web/deployment/GenericToSpecificPlanConverterTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/svkmerge/m2migration/modules/web-builder/src/test/org/apache/geronimo/web/deployment/GenericToSpecificPlanConverterTest.java?rev=420362&r1=420361&r2=420362&view=diff
==============================================================================
--- geronimo/sandbox/svkmerge/m2migration/modules/web-builder/src/test/org/apache/geronimo/web/deployment/GenericToSpecificPlanConverterTest.java
(original)
+++ geronimo/sandbox/svkmerge/m2migration/modules/web-builder/src/test/org/apache/geronimo/web/deployment/GenericToSpecificPlanConverterTest.java
Sun Jul  9 15:38:15 2006
@@ -27,10 +27,15 @@
 import org.apache.xmlbeans.XmlCursor;
 import org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
 /**
  * @version $Rev$ $Date$
  */
 public class GenericToSpecificPlanConverterTest extends TestCase {
+    private static final Log log = LogFactory.getLog(GenericToSpecificPlanConverterTest.class);
+    
     private ClassLoader classLoader = this.getClass().getClassLoader();
 
     public void testConvertPlan1() throws Exception {
@@ -50,13 +55,15 @@
         URL srcXml = classLoader.getResource(prePlanName);
         URL expectedOutputXml = classLoader.getResource(postPlanName);
         XmlObject rawPlan = XmlBeansUtil.parse(srcXml);
-        System.out.println("RAW PLAN " + rawPlan.toString());
+        log.debug("RAW PLAN " + rawPlan.toString());
+        
         XmlObject expected = XmlObject.Factory.parse(expectedOutputXml);
         XmlObject webPlan = new GenericToSpecificPlanConverter("http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0",
                 "http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1", "tomcat").convertToSpecificPlan(rawPlan);
 
-        System.out.println("PROCESSED: " + webPlan.toString());
-        System.out.println("EXPECTED: " + expected.toString());
+        log.debug("PROCESSED: " + webPlan.toString());
+        log.debug("EXPECTED: " + expected.toString());
+        
         List problems = new ArrayList();
         boolean ok = compareXmlObjects(webPlan, expected, problems);
         assertTrue("Differences: " + problems, ok);



Mime
View raw message