tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1175876 - /tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/ContributionClassLoaderTestCase.java
Date Mon, 26 Sep 2011 13:56:32 GMT
Author: antelder
Date: Mon Sep 26 13:56:32 2011
New Revision: 1175876

URL: http://svn.apache.org/viewvc?rev=1175876&view=rev
Log:
Extend test to make sure the class loader from validateContribution is the one that actually
gets used

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

Modified: tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/ContributionClassLoaderTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/ContributionClassLoaderTestCase.java?rev=1175876&r1=1175875&r2=1175876&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/ContributionClassLoaderTestCase.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/ContributionClassLoaderTestCase.java
Mon Sep 26 13:56:32 2011
@@ -40,7 +40,10 @@ public class ContributionClassLoaderTest
         Contribution contribution = node.getContribution(curi);
         Assert.assertNull(contribution.getClassLoader());
         node.validateContribution(curi);
-        Assert.assertNotNull(contribution.getClassLoader());
+        ClassLoader cl1 = contribution.getClassLoader();
+        Assert.assertNotNull(cl1);
+        node.startComposite(curi, "helloworld.composite");
+        Assert.assertEquals(cl1, node.getContribution(curi).getClassLoader());
     }
     
 }



Mime
View raw message