diff options
Diffstat (limited to 'java/sca/samples/helloworld-bpel/src/test/java/helloworld/BPELHelloWorldTestCase.java')
-rw-r--r-- | java/sca/samples/helloworld-bpel/src/test/java/helloworld/BPELHelloWorldTestCase.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/java/sca/samples/helloworld-bpel/src/test/java/helloworld/BPELHelloWorldTestCase.java b/java/sca/samples/helloworld-bpel/src/test/java/helloworld/BPELHelloWorldTestCase.java index 12e40d334b..d311bad3c5 100644 --- a/java/sca/samples/helloworld-bpel/src/test/java/helloworld/BPELHelloWorldTestCase.java +++ b/java/sca/samples/helloworld-bpel/src/test/java/helloworld/BPELHelloWorldTestCase.java @@ -21,6 +21,8 @@ package helloworld; import junit.framework.Assert; +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,8 +44,9 @@ public class BPELHelloWorldTestCase { */ @BeforeClass public static void setUp() throws Exception { - - node = NodeFactory.newInstance().createNode(); + // String location = ContributionLocationHelper.getContributionLocation(BPELClient.class); + String location = ContributionLocationHelper.getContributionLocation("helloworld.composite"); + node = NodeFactory.newInstance().createNode(new Contribution("c1", location)); node.start(); bpelService = node.getService(Hello.class, "BPELHelloWorldComponent"); |