[jboss-svn-commits] JBL Code SVN: r20981 - labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/helpers.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Jul 9 14:19:44 EDT 2008


Author: mark.little at jboss.com
Date: 2008-07-09 14:19:44 -0400 (Wed, 09 Jul 2008)
New Revision: 20981

Modified:
   labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/helpers/ConfigTreeUnitTest.java
Log:
http://jira.jboss.com/jira/browse/JBESB-1863

Modified: labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/helpers/ConfigTreeUnitTest.java
===================================================================
--- labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/helpers/ConfigTreeUnitTest.java	2008-07-09 16:10:14 UTC (rev 20980)
+++ labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/helpers/ConfigTreeUnitTest.java	2008-07-09 18:19:44 UTC (rev 20981)
@@ -77,6 +77,28 @@
 		assertTrue("ConfigTree creation from a stream failed, or, ConfigTree toXML failed - failed to produce the same XML.", 
 				StringUtils.equalsIgnoreLinebreaks(new String(expected), output, false));
 	}
+        
+        public void testChildren () throws SAXException, IOException
+        {
+                ConfigTree confTree = ConfigTree.fromInputStream(getStream("testfile5.xml"));
+                
+                System.err.println(confTree.toString());
+                
+                ConfigTree[] children = confTree.getAllChildren();
+                
+                for (ConfigTree child : children)
+                {
+                    System.err.println(child.toString()+"\n");
+                }
+                
+                // make sure attribute names are unique!
+                
+                ConfigTree theChild = confTree.getFirstChild("message-property-name");
+                
+                System.err.println("\n"+theChild);
+                
+                assertNotNull(theChild);
+        }
 
 	public void test_fromXML_args() throws SAXException, IOException
 	{		




More information about the jboss-svn-commits mailing list