tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r935184 - /tuscany/sandbox/slaws/bank-challenge/bank-contribution/src/test/java/test/BankTestCase.java
Date Sat, 17 Apr 2010 14:54:36 GMT
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");
     }



Mime
View raw message