summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/domain-node
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-09-26 13:56:32 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-09-26 13:56:32 +0000
commit4ce67bf3f981406455363b53e5a79b0262300568 (patch)
tree32e788e89b803e94f08eb06bb5b8ad7c93144d4c /sca-java-2.x/trunk/modules/domain-node
parent2e38366412b3ac16239ab11157cf3abcec6290eb (diff)
Extend test to make sure the class loader from validateContribution is the one that actually gets used
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1175876 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/domain-node')
-rw-r--r--sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/ContributionClassLoaderTestCase.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/ContributionClassLoaderTestCase.java b/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/ContributionClassLoaderTestCase.java
index f7f7f9f6bc..298c20b093 100644
--- a/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/ContributionClassLoaderTestCase.java
+++ b/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/impl/ContributionClassLoaderTestCase.java
@@ -40,7 +40,10 @@ public class ContributionClassLoaderTestCase {
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());
}
}