You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2009/06/12 09:55:07 UTC
svn commit: r784021 -
/tuscany/java/sca/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java
Author: lresende
Date: Fri Jun 12 07:55:06 2009
New Revision: 784021
URL: http://svn.apache.org/viewvc?rev=784021&view=rev
Log:
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
Modified:
tuscany/java/sca/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java
Modified: tuscany/java/sca/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java?rev=784021&r1=784020&r2=784021&view=diff
==============================================================================
--- tuscany/java/sca/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java (original)
+++ tuscany/java/sca/itest/bpel/helloworld/src/test/java/helloworld/HelloWorldTestCase.java Fri Jun 12 07:55:06 2009
@@ -22,6 +22,8 @@
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 @@
*/
@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();
}