Skip to content

Commit

Permalink
DMP-4215 Trim courthouse and courtroom on entry into DARTS
Browse files Browse the repository at this point in the history
Added trim to courthouse and courtroom name before attempting to find the entry in DARTS
  • Loading branch information
karen-hedges committed Mar 3, 2025
1 parent 3855b8d commit 445a0a7
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ void success() {
String courthouseName = "FUNC-SWANSEA-HOUSE-" + randomAlphanumeric(7);
String courtroomName = "FUNC-SWANSEA-ROOM-" + randomAlphanumeric(7);

createCourtroomAndCourthouse(courthouseName,courtroomName);
createCourtroomAndCourthouse(courthouseName, courtroomName);

String bodyText = """
{
"message_id": "100",
"type": "1000",
"sub_type": "1002",
"event_id": "12345",
"courthouse": "<<courtHouseName>>",
"courtroom": "<<courtroomName>>",
"case_numbers": [
"FUNC-Swansea_case_1"
],
"event_text": "A temporary event created by functional test",
"date_time": "2023-08-08T14:01:06Z"
}""";
{
"message_id": "100",
"type": "1000",
"sub_type": "1002",
"event_id": "12345",
"courthouse": "<<courtHouseName>>",
"courtroom": "<<courtroomName>>",
"case_numbers": [
"FUNC-Swansea_case_1"
],
"event_text": "A temporary event created by functional test",
"date_time": "2023-08-08T14:01:06Z"
}""";
bodyText = bodyText.replace("<<courtHouseName>>", courthouseName);
bodyText = bodyText.replace("<<courtroomName>>", courtroomName);

Expand All @@ -69,7 +69,7 @@ void fail() {
"type": "1000",
"sub_type": "1002",
"event_id": "12345",
"courthouse": "",
"courthouse": "UNKNOWN_COURTHOUSE",
"courtroom": "1",
"case_numbers": [
"FUNC-Swansea_case_1"
Expand Down

0 comments on commit 445a0a7

Please sign in to comment.