Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRidh committed Aug 6, 2024
1 parent e7af363 commit c7b6a81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class GetVeritransToken extends ExternalServiceRequest {
@NonNull
public String tokenApiKey;
@NonNull
public String cardholderName
public String cardholderName;

public GetVeritransToken(@NonNull String cardNumber, @NonNull String cardExpiryDate, @NonNull String securityCode, @NonNull String tokenApiKey, @NonNull String cardholderName) {
this.cardNumber = cardNumber;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ private String fetchVeritransMdkToken() {
final String testTokenApiKey = "9ad14759-7082-457e-a874-864c78edc05a";

try {
VeritransToken response = new GetVeritransToken(testCardNumber, "12/23", "123", testTokenApiKey).send();
VeritransToken response = new GetVeritransToken(testCardNumber, "12/23", "123", testTokenApiKey, "FOO BAR").send();
return response.token;
} catch (Exception e) {
fail();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class GetVeritransTokenTest {
@Test
public void MDKTokenCanGet() throws ProcessingError {
try {
new GetVeritransToken(testCardNumber, "12/23", "123", testTokenApiKey, 'FOO BAR').send();
new GetVeritransToken(testCardNumber, "12/23", "123", testTokenApiKey, "FOO BAR").send();
} catch (ExternalServiceRequestError e) {
fail(e.toString());
}
Expand All @@ -25,7 +25,7 @@ public void MDKTokenCanGet() throws ProcessingError {
@Test
public void ThrowErrorIfdExpireDateIsInvalid() throws ProcessingError, ExternalServiceRequestError {
try {
new GetVeritransToken(testCardNumber, "1223", "123", testTokenApiKey, 'FOO BAR').send();
new GetVeritransToken(testCardNumber, "1223", "123", testTokenApiKey, "FOO BAR").send();
fail();
} catch (VeritransRequestError e) {
assertEquals("failure", e.error.status);
Expand Down

0 comments on commit c7b6a81

Please sign in to comment.