From e98a5f3a104686af6c1acff9a88ac037dad827e2 Mon Sep 17 00:00:00 2001 From: lresende Date: Fri, 12 Jun 2009 07:55:06 +0000 Subject: 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 --- .../bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'java/sca/itest') 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(); } -- cgit v1.2.3