Package com.tuscanyscatours.payment

Examples of com.tuscanyscatours.payment.Payment


                                                              locate("creditcard-payment-jaxb"),
                                                              locate("emailgateway"));
        node.start();
       
        SCAClient client = (SCAClient)node;
        Payment payment = client.getService(Payment.class, "Payment/paymentPartnerLink");

        System.out.println("Payment BPEL test");
        System.out.println("\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));
       
        node.stop();

        // The following line is a workaround for TUSCANY-3475 when running
        // on Tuscany SCA 1.6 (the JVM waits for 60 seconds before exiting).
View Full Code Here


    }

    @Test
    public void testPayment() {
        SCAClient client = (SCAClient)paymentNode;
        Payment payment = client.getService(Payment.class, "PaymentClient");
        String result = payment.makePaymentMember("c-0", 100.00f);
        System.out.println("Result = " + result);
        if (!"OK".equals(result)) {
            throw new RuntimeException(result);
        }
    }
View Full Code Here

                                                              locate("payment-java-policy"),
                                                              locate("creditcard-payment-jaxb-policy"));
        node.start();
       
        SCAClient client = (SCAClient)node;
        Payment payment = client.getService(Payment.class, "Payment");

        System.out.println("Payment Java Policy test");
        System.out.println("\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));
       
        node.stop();
    }
View Full Code Here

                                                              locate("payment-spring-scatag"),
                                                              locate("creditcard-payment-jaxb"));
        node.start();
       
        SCAClient client = (SCAClient)node;
        Payment payment = client.getService(Payment.class, "Payment/Payment");

        System.out.println("Payment Spring SCATag test");
        System.out.println("\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));
       
        node.stop();
    }
View Full Code Here

                                                              locate("payment-python"),
                                                              locate("emailgateway"));
        node.start();
       
        SCAClient client = (SCAClient)node;
        Payment payment = client.getService(Payment.class, "Payment");

        System.out.println("Payment Python test");
        System.out.println("\nSuccessful Payment - Status = \n\n" + payment.makePaymentMember("c-0", 100.00f));
       
        node.stop();
    }
View Full Code Here

                                                              locate("payment-spring"),
                                                              locate("creditcard-payment-jaxb"));
        node.start();
       
        SCAClient client = (SCAClient)node;
        Payment payment = client.getService(Payment.class, "Payment/Payment");

        System.out.println("Payment Spring test");
        System.out.println("\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));
       
        node.stop();
    }
View Full Code Here

        SCANode node = SCANodeFactory.newInstance().createSCANode(null,
                                                              locate("payment-java-reference-pass"));
        node.start();
       
        SCAClient client = (SCAClient)node;
        Payment payment = client.getService(Payment.class, "Payment");

        System.out.println("===================================================");
        System.out.println("\n\nPayment - Status = \n\n" + payment.makePaymentMember("c-0", 100.00f));
        System.out.println("===================================================");
       
        node.stop();
    }
View Full Code Here

                                                              locate("payment-groovy"),
                                                              locate("emailgateway"));
        node.start();
       
        SCAClient client = (SCAClient)node;
        Payment payment = client.getService(Payment.class, "Payment");

        System.out.println("Payment Groovy test");
        System.out.println("\nSuccessful Payment - Status = \n\n" + payment.makePaymentMember("c-0", 100.00f));
       
        node.stop();
    }
View Full Code Here

                                                              locate("payment-java"),
                                                              locate("creditcard-payment-jaxb"));
        node.start();
       
        SCAClient client = (SCAClient)node;
        Payment payment = client.getService(Payment.class, "Payment");

        System.out.println("Payment Java test");
        System.out.println("\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));
       
        node.stop();
    }
View Full Code Here

    }
   
    @Test
    public void testPayment() {
        SCAClient client = (SCAClient) node;
        Payment payment = client.getService(Payment.class, "Payment");
        System.out.println(payment.makePaymentMember("c-0", 100.00f));
    }
View Full Code Here

TOP

Related Classes of com.tuscanyscatours.payment.Payment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.