Skip to content

Commit

Permalink
Update test. Previous unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-rodriguez-cko committed Jan 9, 2025
1 parent 5373474 commit c5e4541
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/checkout/CardSourceHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public static class Visa {

public static final String NAME = "Mr. Duke";
public static final String NUMBER = "4242424242424242";
public static final int EXPIRY_MONTH = 6;
public static final int EXPIRY_YEAR = 2025;
public static final int EXPIRY_MONTH = 12;
public static final int EXPIRY_YEAR = 2030;
public static final String CVV = "100";

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void shouldUpdateCardInstrument() {

final UpdateInstrumentCardRequest updateRequest = UpdateInstrumentCardRequest.builder()
.expiryMonth(12)
.expiryYear(2024)
.expiryYear(2030)
.name("John Doe")
.customer(UpdateCustomerRequest.builder().id(tokenInstrument.getCustomer().getId()).defaultCustomer(true).build())
.accountHolder(AccountHolder.builder()
Expand Down Expand Up @@ -118,7 +118,7 @@ void shouldUpdateCardInstrument() {
assertNotNull(cardResponse.getId());
assertNotNull(cardResponse.getFingerprint());
assertEquals(12, cardResponse.getExpiryMonth());
assertEquals(2024, cardResponse.getExpiryYear());
assertEquals(2030, cardResponse.getExpiryYear());
assertEquals("John", cardResponse.getAccountHolder().getFirstName());
assertEquals("Doe", cardResponse.getAccountHolder().getLastName());
assertTrue(cardResponse.getCustomer().isDefault());
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/checkout/payments/PayoutsTestIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void shouldMakeCardPayoutPayments() {
.destination(PaymentRequestCardDestination.builder()
.number("5219565036325411")
.expiryMonth(12)
.expiryYear(2024)
.expiryYear(2030)
.accountHolder(AccountHolder.builder()
.type(AccountHolderType.INDIVIDUAL)
.firstName("John")
Expand All @@ -61,7 +61,7 @@ void shouldMakeCardPayoutPayments() {
.type(AccountHolderIdentificationType.PASSPORT)
.number("E2341")
.issuingCountry(CountryCode.FR)
.dateOfExpiry("2024-05-05")
.dateOfExpiry("2030-05-05")
.build())
.email("[email protected]")
.build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.checkout.payments.RefundRequest;
import com.checkout.payments.RefundResponse;
import com.checkout.payments.previous.response.PaymentResponse;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import java.util.UUID;
Expand All @@ -13,6 +14,7 @@
class RefundPaymentsTestIT extends AbstractPaymentsTestIT {

@Test
@Disabled("unavailable")
void shouldRefundPayment() {

final PaymentResponse paymentResponse = makeCardPayment(true, 10);
Expand All @@ -33,6 +35,7 @@ void shouldRefundPayment() {
}

@Test
@Disabled("unavailable")
void shouldRefundPaymentIdempotently() {

final PaymentResponse paymentResponse = makeCardPayment(true, 10);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ void shouldMakeCardVerification() {
}

@Test
@Disabled("unavailable")
void shouldMakeCardPayment_3ds() {

final PaymentResponse paymentResponse = make3dsCardPayment(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.checkout.payments.previous.request.PayoutRequest;
import com.checkout.payments.previous.request.destination.PaymentRequestCardDestination;
import com.checkout.payments.previous.response.PaymentResponse;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import java.util.HashMap;
Expand All @@ -27,6 +28,7 @@ class RequestPayoutsTestIT extends SandboxTestFixture {
}

@Test
@Disabled("unavailable")
void shouldRequestPayout() throws Exception {

final PaymentRequestCardDestination paymentCardDestination = PaymentRequestCardDestination.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void shouldRequestCardToken() {
when(sdkCredentials.getAuthorization(SdkAuthorizationType.PUBLIC_KEY)).thenReturn(authorization);
when(configuration.getSdkCredentials()).thenReturn(sdkCredentials);

final CardTokenRequest cardTokenRequest = CardTokenRequest.builder().number("123").expiryMonth(3).expiryYear(2024).build();
final CardTokenRequest cardTokenRequest = CardTokenRequest.builder().number("123").expiryMonth(3).expiryYear(2030).build();

tokensClient.requestCardToken(cardTokenRequest);

Expand Down

0 comments on commit c5e4541

Please sign in to comment.