geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r438694 - /geronimo/server/trunk/modules/geronimo-kernel/src/test/java/org/apache/geronimo/kernel/config/ConfigurationUtilTest.java
Date Wed, 30 Aug 2006 22:51:59 GMT
Author: jdillon
Date: Wed Aug 30 15:51:58 2006
New Revision: 438694

URL: http://svn.apache.org/viewvc?rev=438694&view=rev
Log:
Output to a BAOS instead of System.out

Modified:
    geronimo/server/trunk/modules/geronimo-kernel/src/test/java/org/apache/geronimo/kernel/config/ConfigurationUtilTest.java

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/test/java/org/apache/geronimo/kernel/config/ConfigurationUtilTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/test/java/org/apache/geronimo/kernel/config/ConfigurationUtilTest.java?rev=438694&r1=438693&r2=438694&view=diff
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/test/java/org/apache/geronimo/kernel/config/ConfigurationUtilTest.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/test/java/org/apache/geronimo/kernel/config/ConfigurationUtilTest.java
Wed Aug 30 15:51:58 2006
@@ -19,12 +19,14 @@
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
+
 import java.util.Collections;
 import java.util.List;
 
 import javax.xml.namespace.QName;
 
 import junit.framework.TestCase;
+
 import org.apache.geronimo.gbean.AbstractName;
 import org.apache.geronimo.gbean.AbstractNameQuery;
 import org.apache.geronimo.gbean.GBeanData;
@@ -48,7 +50,8 @@
         assertEquals(data, configurationData);
 
         configurationData = createConfigurationData(xstreamConfigurationMarshaler);
-        xstreamConfigurationMarshaler.writeConfigurationData(configurationData, System.out);
+        ByteArrayOutputStream out = new ByteArrayOutputStream();
+        xstreamConfigurationMarshaler.writeConfigurationData(configurationData, out);
         data = copy(configurationData, xstreamConfigurationMarshaler, xstreamConfigurationMarshaler);
         assertEquals(data, configurationData);
 



Mime
View raw message