diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-26 21:51:04 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-26 21:51:04 +0000 |
commit | c0be84658ad4dc4d9df3b7ddbf7cd18b261312d6 (patch) | |
tree | 16474f192e99e296840f1150add3cbca1cf8e2a8 /sandbox/travelsample/contributions/payment-java-policy | |
parent | ea16b5e9a260e41ad8be3c70fe954db9667a6561 (diff) |
A bit of tidying in the full-app. Mainly renaming frontend to coordination and correcting the composite names in the full app contributions
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@884703 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/contributions/payment-java-policy')
-rw-r--r-- | sandbox/travelsample/contributions/payment-java-policy/src/test/java/scatours/payment/PaymentTestCase.java | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/sandbox/travelsample/contributions/payment-java-policy/src/test/java/scatours/payment/PaymentTestCase.java b/sandbox/travelsample/contributions/payment-java-policy/src/test/java/scatours/payment/PaymentTestCase.java index 5fd8900fce..d8c79622e6 100644 --- a/sandbox/travelsample/contributions/payment-java-policy/src/test/java/scatours/payment/PaymentTestCase.java +++ b/sandbox/travelsample/contributions/payment-java-policy/src/test/java/scatours/payment/PaymentTestCase.java @@ -31,22 +31,27 @@ import org.junit.Test; import com.tuscanyscatours.payment.Payment; public class PaymentTestCase { - private static SCANode node; + private static SCANode node1; + private static SCANode node2; @BeforeClass public static void setUpBeforeClass() throws Exception { - node = + node1 = SCANodeFactory.newInstance() - .createSCANode(null, - new SCAContribution("payment", "./target/classes"), + .createSCANode("payment.composite", + new SCAContribution("payment", "./target/classes")); + node2 = + SCANodeFactory.newInstance() + .createSCANode("creditcard.composite", new SCAContribution("creditcard", "../../contributions/creditcard-payment-jaxb/target/classes")); - node.start(); + node1.start(); + node2.start(); } @Test public void testPayment() { - SCAClient client = (SCAClient)node; + SCAClient client = (SCAClient)node1; Payment payment = client.getService(Payment.class, "Payment"); System.out.println("\n\nSuccessful Payment - Status = \n\n" + payment.makePaymentMember("c-0", 100.00f)); @@ -66,10 +71,15 @@ public class PaymentTestCase { @AfterClass public static void tearDownAfterClass() throws Exception { - if (node != null) { - node.stop(); - node = null; + if (node1 != null) { + node1.stop(); + node1 = null; } + + if (node2 != null) { + node2.stop(); + node2 = null; + } } } |