Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use valid visa card numbers in tests

  • Loading branch information...
commit f38edbd3d34e271038a5ca127091096f9175b1d8 1 parent 0bb93fb
@testinfected authored
View
2  ...tore-domain/src/test/java/test/support/com/pyxis/petstore/builders/CreditCardBuilder.java
@@ -28,7 +28,7 @@ public static CreditCardBuilder aCreditCard() {
public static CreditCardBuilder validVisaDetails() {
return aVisa().
- withNumber("9999 9999 9999").
+ withNumber("4111111111111111").
withExpiryDate("12/12").
billedTo(aValidAddress());
}
View
6 petstore-system-tests/src/test/java/test/system/com/pyxis/petstore/PurchaseFeature.java
@@ -17,12 +17,12 @@
application.checkout();
application.showsTotalToPay("1248.00");
- application.pay("John", "Leclair", "jleclair@gmail.com", "Visa", "9999 9999 9999 9999", "12/12");
+ application.pay("John", "Doe", "jdoe@gmail.com", "Visa", "4111111111111111", "12/12");
application.showsTotalPaid("1248.00");
application.showsLineItem("11111111", "Male Adult", "599.00");
application.showsLineItem("22222222", "Female Adult", "649.00");
- application.showsBillingInformation("John", "Leclair", "jleclair@gmail.com");
- application.showsCreditCardDetails("Visa", "9999 9999 9999 9999", "12/12");
+ application.showsBillingInformation("John", "Doe", "jdoe@gmail.com");
+ application.showsCreditCardDetails("Visa", "4111111111111111", "12/12");
application.continueShopping();
application.showsCartIsEmpty();
Please sign in to comment.
Something went wrong with that request. Please try again.