tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1101421 - /tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/DomainCompositeTestCase.java
Date Tue, 10 May 2011 12:12:22 GMT
Author: antelder
Date: Tue May 10 12:12:22 2011
New Revision: 1101421

URL: http://svn.apache.org/viewvc?rev=1101421&view=rev
Log:
Update testcase to also test the AsString method

Modified:
    tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/DomainCompositeTestCase.java

Modified: tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/DomainCompositeTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/DomainCompositeTestCase.java?rev=1101421&r1=1101420&r2=1101421&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/DomainCompositeTestCase.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/DomainCompositeTestCase.java
Tue May 10 12:12:22 2011
@@ -50,6 +50,10 @@ public class DomainCompositeTestCase {
         Assert.assertEquals(1, dc.getIncludes().size());
         Composite c = dc.getIncludes().get(0);
         Assert.assertEquals("helloworld", c.getName().getLocalPart());
+        
+        String s = node.getDomainLevelCompositeAsString();
+        System.out.println(s);
+        Assert.assertTrue(s.contains(":helloworld\""));
 
         node.stop("helloworld", "helloworld.composite");
         Assert.assertEquals(0, node.getDomainLevelComposite().getIncludes().size());



Mime
View raw message