diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-05 21:14:49 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-05 21:14:49 +0000 |
commit | 8c049462ff6387d8c3f69f4e42a4c4b36e38a90c (patch) | |
tree | 3e6b1ec1ab2e2a724d9228ca55052394c3034060 /sandbox/travelsample/contributions/payment-java/src/test/java/scatours/payment/PaymentTestCase.java | |
parent | 68c3920fc0ba41c6a9ebf062bd41e5ebf647e51b (diff) |
Format the code
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@833174 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/contributions/payment-java/src/test/java/scatours/payment/PaymentTestCase.java')
-rw-r--r-- | sandbox/travelsample/contributions/payment-java/src/test/java/scatours/payment/PaymentTestCase.java | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/sandbox/travelsample/contributions/payment-java/src/test/java/scatours/payment/PaymentTestCase.java b/sandbox/travelsample/contributions/payment-java/src/test/java/scatours/payment/PaymentTestCase.java index 631642ea0a..ead8b87db0 100644 --- a/sandbox/travelsample/contributions/payment-java/src/test/java/scatours/payment/PaymentTestCase.java +++ b/sandbox/travelsample/contributions/payment-java/src/test/java/scatours/payment/PaymentTestCase.java @@ -19,7 +19,6 @@ package scatours.payment;
-import com.tuscanyscatours.payment.Payment;
import org.apache.tuscany.sca.node.SCAClient;
import org.apache.tuscany.sca.node.SCAContribution;
import org.apache.tuscany.sca.node.SCANode;
@@ -29,26 +28,31 @@ import org.junit.BeforeClass; import org.junit.Ignore;
import org.junit.Test;
+import com.tuscanyscatours.payment.Payment;
+
public class PaymentTestCase {
private static SCANode node;
@BeforeClass
public static void setUpBeforeClass() throws Exception {
- node = SCANodeFactory.newInstance().createSCANode(null,
- new SCAContribution("payment", "./target/classes"),
- new SCAContribution("creditcard", "../../contributions/creditcard-payment-jaxb/target/classes"));
+ node =
+ SCANodeFactory.newInstance()
+ .createSCANode(null,
+ new SCAContribution("payment", "./target/classes"),
+ new SCAContribution("creditcard",
+ "../../contributions/creditcard-payment-jaxb/target/classes"));
node.start();
}
-
+
@Test
public void testPayment() {
- SCAClient client = (SCAClient) node;
+ SCAClient client = (SCAClient)node;
Payment payment = client.getService(Payment.class, "Payment");
-
+
System.out.println("\n\nSuccessful Payment - Status = \n\n" + payment.makePaymentMember("c-0", 100.00f));
System.out.println("\n\nFailed Payment - Status = \n\n" + payment.makePaymentMember("c-1", 100.00f));
}
-
+
@Test
@Ignore
public void testWaitForInput() {
@@ -58,7 +62,7 @@ public class PaymentTestCase { } catch (Exception ex) {
}
System.out.println("Shutting down");
- }
+ }
@AfterClass
public static void tearDownAfterClass() throws Exception {
|