svn commit: r668006 - /activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/model/GenerateXmlTest.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r668006 - /activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/model/GenerateXmlTest.java

davsclaus-2
Author: davsclaus
Date: Sun Jun 15 13:02:11 2008
New Revision: 668006

URL: http://svn.apache.org/viewvc?rev=668006&view=rev
Log:
CAMEL-608: Remove System.out

Modified:
    activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/model/GenerateXmlTest.java

Modified: activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/model/GenerateXmlTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/model/GenerateXmlTest.java?rev=668006&r1=668005&r2=668006&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/model/GenerateXmlTest.java (original)
+++ activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/model/GenerateXmlTest.java Sun Jun 15 13:02:11 2008
@@ -28,6 +28,7 @@
  * @version $Revision$
  */
 public class GenerateXmlTest extends XmlTestSupport {
+
     public void testCreateSimpleXml() throws Exception {
         RoutesType context = new RoutesType();
         RouteType route = context.route();
@@ -59,6 +60,9 @@
         StringWriter buffer = new StringWriter();
         marshaller.marshal(context, buffer);
         log.info("Created: " + buffer);
-        //System.out.println("Created: " + buffer);
+        assertNotNull(buffer);
+        String out = buffer.toString();
+        assertTrue("Should contain the description", out.indexOf("This is a description of the route") > -1);
     }
+    
 }