diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-12 07:55:06 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-12 07:55:06 +0000 |
commit | e98a5f3a104686af6c1acff9a88ac037dad827e2 (patch) | |
tree | f4ad8f64a328d6c65594f4f0d60d33e9e3bb1831 /java/sca/itest/bpel | |
parent | 5fe3b2bb0b6c1492caa247adfc66ecf124e023a7 (diff) |
Consructing contribuition location, as default no parameter createNode is not working when composite is in resource subdirectory and not in root of contribution among other issues
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@784021 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/itest/bpel')
-rw-r--r-- | java/sca/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/sca/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java b/java/sca/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java index 31b3577da4..86e6e4e9c5 100644 --- a/java/sca/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java +++ b/java/sca/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java @@ -22,6 +22,8 @@ package helloworld; import junit.framework.Assert; import org.apache.tuscany.implementation.bpel.example.helloworld.HelloPortType; +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; import org.junit.AfterClass; @@ -42,7 +44,8 @@ public class HelloWorldTestCase { */ @BeforeClass public static void setUp() throws Exception { - node = NodeFactory.newInstance().createNode(); + String location = ContributionLocationHelper.getContributionLocation("helloworld/helloworld.composite"); + node = NodeFactory.newInstance().createNode("helloworld/helloworld.composite", new Contribution("c1", location)); node.start(); } |