Author: slaws
Date: Sat Apr 17 14:54:36 2010
New Revision: 935184
URL: http://svn.apache.org/viewvc?rev=935184&view=rev
Log:
Load the common contribution as it's required by the bank contribution
Modified:
tuscany/sandbox/slaws/bank-challenge/bank-contribution/src/test/java/test/BankTestCase.java
Modified:
tuscany/sandbox/slaws/bank-challenge/bank-contribution/src/test/java/test/BankTestCase.java
URL:
http://svn.apache.org/viewvc/tuscany/sandbox/slaws/bank-challenge/bank-contribution/src/test/java/test/BankTestCase.java?rev=935184&r1=935183&r2=935184&view=diff
==============================================================================
---
tuscany/sandbox/slaws/bank-challenge/bank-contribution/src/test/java/test/BankTestCase.java
(original)
+++
tuscany/sandbox/slaws/bank-challenge/bank-contribution/src/test/java/test/BankTestCase.java
Sat Apr 17 14:54:36 2010
@@ -20,6 +20,7 @@ package test;
import static org.junit.Assert.assertEquals;
+import org.apache.tuscany.sca.node.Contribution;
import org.apache.tuscany.sca.node.Node;
import org.apache.tuscany.sca.node.NodeFactory;
import org.junit.AfterClass;
@@ -38,7 +39,8 @@ public class BankTestCase{
@BeforeClass
public static void setUpBeforeClass() throws Exception {
- node = NodeFactory.newInstance().createNode((String)null, new String[]
{"target/classes"});
+ node = NodeFactory.newInstance().createNode(new Contribution("Bank",
"../bank-contribution/target/classes"),
+ new Contribution("Common",
"../common-contribution/target/classes"));
node.start();
bankService = node.getService(BankService.class,
"BankServiceComponent/BankService");
}