Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/test/java/com/checkout/issuing/BaseIssuingTestIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@

public abstract class BaseIssuingTestIT extends SandboxTestFixture {

// currently not used: Sandbox card product account range is full error (card_product_account_range_full)
protected String oldProductId = "pro_3fn6pv2ikshurn36dbd3iysyha";

// new product with available account range created for testing purposes
protected String newProductId = "pro_gfp2kpog3ztutpgtpu4jj36n7i";

protected CheckoutApi issuingApi;

public BaseIssuingTestIT() {
Expand Down Expand Up @@ -78,7 +84,7 @@ protected CardResponse createCard(final String cardholderId) {
protected CardResponse createCard(final String cardholderId, final Boolean active) {
final VirtualCardRequest request = VirtualCardRequest.builder()
.cardholderId(cardholderId)
.cardProductId("pro_3fn6pv2ikshurn36dbd3iysyha")
.cardProductId(newProductId)
.lifetime(CardLifetime.builder()
.unit(LifetimeUnit.MONTHS)
.value(6)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
import com.checkout.issuing.transactions.responses.TransactionsListResponse;
import com.checkout.issuing.transactions.responses.TransactionsSingleResponse;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
//import org.junit.jupiter.api.Disabled;

Check warning on line 9 in src/test/java/com/checkout/issuing/IssuingTransactionsTestIT.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

This block of commented-out lines of code should be removed.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-java&issues=AZ613dXmvL2XkRNbrXdb&open=AZ613dXmvL2XkRNbrXdb&pullRequest=611
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;

import static org.junit.jupiter.api.Assertions.assertNotNull;


@Disabled("Sandbox card product account range is full (card_product_account_range_full); " +
"requires a card product with available account range")
//@Disabled("Sandbox card product account range is full (card_product_account_range_full); " +
// "requires a card product with available account range")
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
class IssuingTransactionsTestIT extends BaseIssuingTestIT {

Expand Down
Loading