summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-03-03 22:34:36 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-03-03 22:34:36 +0000
commit10ede45693e24dc7450560fa575ece3a346c51b8 (patch)
tree2fb86c3731907f286152aaff8606582a7fe39dc7 /sandbox/travelsample
parentc7557e4aae2a5ebba4ac255d5a5b57d38c430138 (diff)
Move CreditCardPaymentImpl into src/main/java
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@749806 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample')
-rw-r--r--sandbox/travelsample/shared-contributions/payment-java-contribution/src/main/java/payment/creditcard/CreditCardPaymentImpl.java (renamed from sandbox/travelsample/shared-contributions/payment-java-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java)17
-rw-r--r--sandbox/travelsample/shared-contributions/payment-java-contribution/src/main/java/scatours/emailgateway/EmailGateway.java1
2 files changed, 8 insertions, 10 deletions
diff --git a/sandbox/travelsample/shared-contributions/payment-java-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java b/sandbox/travelsample/shared-contributions/payment-java-contribution/src/main/java/payment/creditcard/CreditCardPaymentImpl.java
index ac05bf7359..ed86c4d482 100644
--- a/sandbox/travelsample/shared-contributions/payment-java-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java
+++ b/sandbox/travelsample/shared-contributions/payment-java-contribution/src/main/java/payment/creditcard/CreditCardPaymentImpl.java
@@ -23,19 +23,18 @@ import org.osoa.sca.annotations.Service;
@Service(CreditCardPayment.class)
public class CreditCardPaymentImpl implements CreditCardPayment {
-
+
public String authorize(CreditCardDetailsType creditCard, float amount) {
- if (creditCard != null){
- System.out.println("Checking card: name = " +
- creditCard.getCardOwner().getName() +
- " number = " +
- creditCard.getCreditCardNumber() +
- " for amount " +
- amount);
+ if (creditCard != null) {
+ System.out.println("Checking card: name = " + creditCard.getCardOwner().getName()
+ + " number = "
+ + creditCard.getCreditCardNumber()
+ + " for amount "
+ + amount);
} else {
System.out.println("Checking card is null");
}
-
+
return "OK";
}
}
diff --git a/sandbox/travelsample/shared-contributions/payment-java-contribution/src/main/java/scatours/emailgateway/EmailGateway.java b/sandbox/travelsample/shared-contributions/payment-java-contribution/src/main/java/scatours/emailgateway/EmailGateway.java
index 13c34878cf..6c3662b265 100644
--- a/sandbox/travelsample/shared-contributions/payment-java-contribution/src/main/java/scatours/emailgateway/EmailGateway.java
+++ b/sandbox/travelsample/shared-contributions/payment-java-contribution/src/main/java/scatours/emailgateway/EmailGateway.java
@@ -27,5 +27,4 @@ import org.osoa.sca.annotations.Remotable;
@Remotable
public interface EmailGateway {
public boolean sendEmail(String sender, String recipient, String subject, String body);
-
}