tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svkr...@apache.org
Subject svn commit: r572114 - /incubator/tuscany/java/sca/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/BuildPolicyTestCase.java
Date Sun, 02 Sep 2007 19:13:29 GMT
Author: svkrish
Date: Sun Sep  2 12:13:28 2007
New Revision: 572114

URL: http://svn.apache.org/viewvc?rev=572114&view=rev
Log:
modified testcase for changes made to assembly module in r572113

Modified:
    incubator/tuscany/java/sca/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/BuildPolicyTestCase.java

Modified: incubator/tuscany/java/sca/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/BuildPolicyTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/BuildPolicyTestCase.java?rev=572114&r1=572113&r2=572114&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/BuildPolicyTestCase.java
(original)
+++ incubator/tuscany/java/sca/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/BuildPolicyTestCase.java
Sun Sep  2 12:13:28 2007
@@ -134,10 +134,11 @@
         assertEquals(policiedComposite.getRequiredIntents().size(), 1);
         assertEquals(policiedComposite.getRequiredIntents().get(0).getName(), new QName(namespaceUri,
"tuscanyIntent_1"));
         
-        assertEquals(composite.getServices().get(0).getRequiredIntents().size(), 3);
-        assertEquals(composite.getServices().get(0).getRequiredIntents().get(2).getName(),
new QName(namespaceUri, "tuscanyIntent_1"));
+        //1 defined for composite, 2 defined for the service, 1 defined for the promoted
service (4)
+        assertEquals(composite.getServices().get(0).getRequiredIntents().size(), 4);
+        assertEquals(composite.getServices().get(0).getRequiredIntents().get(3).getName(),
new QName(namespaceUri, "tuscanyIntent_3"));
         //bindings will have only 2 intents since duplications will be cut out
-        assertEquals(((IntentAttachPoint)composite.getServices().get(0).getBindings().get(0)).getRequiredIntents().size(),
2);
+        assertEquals(((IntentAttachPoint)composite.getServices().get(0).getBindings().get(0)).getRequiredIntents().size(),
3);
         
         assertEquals(composite.getReferences().get(0).getRequiredIntents().size(), 2);
         assertEquals(composite.getReferences().get(0).getRequiredIntents().get(1).getName(),
new QName(namespaceUri, "tuscanyIntent_1"));



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message