Skip to content

Commit

Permalink
BAU test pact
Browse files Browse the repository at this point in the history
  • Loading branch information
SandorArpa committed Jan 17, 2025
1 parent 07fac52 commit 0f793cb
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 @@ -76,7 +76,7 @@ public void test() {

assertThat(transaction.isPresent(), is(true));
assertThat(transaction.get().getExternalId(), is(externalId));
assertThat(transaction.get().getTransactionDetails(), containsString("\"exemption3ds\": \"HONOURED\""));
assertThat(transaction.get().getTransactionDetails(), containsString("\"exemption3ds\": \"exemption_honoured\""));
}

public void setMessage(byte[] messageContents) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private static PactDslJsonBody getNestedPact(JsonObject eventData) {
} else if (value.isBoolean()) {
dslJsonBody.booleanType(e.getKey(), value.getAsBoolean());
} else {
dslJsonBody.stringType(e.getKey(), value.getAsString());
dslJsonBody.stringValue(e.getKey(), value.getAsString());
}
} else if (e.getValue().isJsonArray()) {
// We're currently only adding a single example from an array to the pact, and then in the
Expand All @@ -98,7 +98,7 @@ private static PactDslJsonBody getNestedPact(JsonObject eventData) {
} else if (value.isBoolean()) {
arrayEntryExample.booleanType(a.getKey(), value.getAsBoolean());
} else {
arrayEntryExample.stringType(a.getKey(), value.getAsString());
arrayEntryExample.stringValue(a.getKey(), value.getAsString());
}
});
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public QueuePaymentEventFixture withDefaultEventDataForEventType(String eventTyp
eventData = gsonBuilder.create().toJson(Map.of("exemption_3ds_requested", "OPTIMISED"));
break;
case "GATEWAY_3DS_EXEMPTION_RESULT_OBTAINED":
eventData = gsonBuilder.create().toJson(Map.of("exemption3ds", "HONOURED"));
eventData = gsonBuilder.create().toJson(Map.of("exemption3ds", "exemption_honoured"));
break;
case "GATEWAY_3DS_INFO_OBTAINED":
eventData = gsonBuilder.create().toJson(Map.of("version_3ds", "2.1.0"));
Expand Down

0 comments on commit 0f793cb

Please sign in to comment.