summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/launchers/introducing-launcher/src/test/java/scatours/IntroducingTestCase.java
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2009-08-17 21:19:14 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2009-08-17 21:19:14 +0000
commit580087675cfd2faac0018ec06964be2abc04dacd (patch)
treef4b4de339c2762d78889c8cde8bbf202f4f82acd /sandbox/travelsample/launchers/introducing-launcher/src/test/java/scatours/IntroducingTestCase.java
parent4b21f2ff3bd3636831bdd10944e18cd8d3fe4dca (diff)
Clean up launcher test case
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@805147 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/launchers/introducing-launcher/src/test/java/scatours/IntroducingTestCase.java')
-rw-r--r--sandbox/travelsample/launchers/introducing-launcher/src/test/java/scatours/IntroducingTestCase.java23
1 files changed, 10 insertions, 13 deletions
diff --git a/sandbox/travelsample/launchers/introducing-launcher/src/test/java/scatours/IntroducingTestCase.java b/sandbox/travelsample/launchers/introducing-launcher/src/test/java/scatours/IntroducingTestCase.java
index dc4586b491..8430f1846b 100644
--- a/sandbox/travelsample/launchers/introducing-launcher/src/test/java/scatours/IntroducingTestCase.java
+++ b/sandbox/travelsample/launchers/introducing-launcher/src/test/java/scatours/IntroducingTestCase.java
@@ -27,8 +27,9 @@ import org.junit.Before;
import org.junit.Test;
/**
- * Test driver for introducing-tuscanyscatours-contribution and
- * introducing-goodvaluetrips-contribution.
+ * Test case to run the test code in introducing-client-contribution that
+ * tests components and services in introducing-tuscanyscatours-contribution
+ * and introducing-goodvaluetrips-contribution.
*/
public class IntroducingTestCase {
@@ -36,21 +37,17 @@ public class IntroducingTestCase {
@Before
public void startServer() throws Exception {
- try {
- node = SCANodeFactory.newInstance().createSCANode(null,
- new SCAContribution("goodvaluetrips", "../../contributions/introducing-goodvaluetrips-contribution/target/classes"),
- new SCAContribution("tuscanyscatours", "../../contributions/introducing-tuscanyscatours-contribution/target/classes"),
- new SCAContribution("client", "../../contributions/introducing-client-contribution/target/classes"));
- node.start();
- } catch (Exception ex) {
- System.out.println(ex.toString());
- }
+ node = SCANodeFactory.newInstance().createSCANode(null,
+ new SCAContribution("introducing-tours", "../../contributions/introducing-tuscanyscatours-contribution/target/classes"),
+ new SCAContribution("introducing-trips", "../../contributions/introducing-goodvaluetrips-contribution/target/classes"),
+ new SCAContribution("introducing-client", "../../contributions/introducing-client-contribution/target/classes"));
+ node.start();
}
@Test
public void testClient() throws Exception {
- Runnable runner = ((SCAClient)node).getService(Runnable.class, "TestClient/Runnable");
- runner.run();
+ Runnable proxy = ((SCAClient)node).getService(Runnable.class, "TestClient/Runnable");
+ proxy.run();
}
@After