diff options
author | ramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-21 17:20:10 +0000 |
---|---|---|
committer | ramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-21 17:20:10 +0000 |
commit | 8c218dfc05c317a967894b46360111169a3f37d3 (patch) | |
tree | d4e340f9a5639df261c582768d1f004cee99fd0b /java/sca/itest/implementation-spring/src/test/java/org/apache | |
parent | f40258cc0b010575fe47e5c53af5a4313cdd3d6b (diff) |
Fixes for Spring itest
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@767230 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/itest/implementation-spring/src/test/java/org/apache')
-rw-r--r-- | java/sca/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractSCATestCase.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/java/sca/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractSCATestCase.java b/java/sca/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractSCATestCase.java index 55bf3c33d4..605a0079fb 100644 --- a/java/sca/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractSCATestCase.java +++ b/java/sca/itest/implementation-spring/src/test/java/org/apache/tuscany/sca/itest/spring/AbstractSCATestCase.java @@ -21,6 +21,8 @@ package org.apache.tuscany.sca.itest.spring; import junit.framework.TestCase;
import org.apache.tuscany.sca.node.Client;
+import org.apache.tuscany.sca.node.Contribution;
+import org.apache.tuscany.sca.node.ContributionLocationHelper;
import org.apache.tuscany.sca.node.Node;
import org.apache.tuscany.sca.node.NodeFactory;
@@ -31,8 +33,9 @@ public abstract class AbstractSCATestCase<T> extends TestCase { @Override
protected void setUp() throws Exception {
- NodeFactory factory = NodeFactory.newInstance();
- node = factory.createNode(getCompositeName());
+ NodeFactory factory = NodeFactory.newInstance();
+ String location = ContributionLocationHelper.getContributionLocation(getCompositeName());
+ node = factory.createNode(getCompositeName(), new Contribution("c1", location));
node.start();
service = ((Client)node).getService(getServiceClass(), "ClientComponent");
}
|