From 15a1250e1b39e1a892011f30137d386fbdbb251c Mon Sep 17 00:00:00 2001 From: "probation-integration-bot[bot]" <177347787+probation-integration-bot[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:32:40 +0000 Subject: [PATCH] Formatting changes --- .../justice/digital/hmpps/IntegrationTest.kt | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/projects/justice-email-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/IntegrationTest.kt b/projects/justice-email-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/IntegrationTest.kt index ae2014436..328990083 100644 --- a/projects/justice-email-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/IntegrationTest.kt +++ b/projects/justice-email-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/IntegrationTest.kt @@ -42,12 +42,16 @@ internal class IntegrationTest { val contact = verifyContactCreated() assertThat(contact.type.code, equalTo(EMAIL.code)) - assertThat(contact.notes, equalTo(""" + assertThat( + contact.notes, equalTo( + """ |This contact was created automatically from a forwarded email sent by example@justice.gov.uk at 12:34 on 01/01/2020. |Subject: A000001 was involved in an incident | |Example message - |""".trimMargin())) + |""".trimMargin() + ) + ) assertThat( contact.externalReference, equalTo("urn:uk:gov:hmpps:justice-email:00000000-0000-0000-0000-000000000000") @@ -65,13 +69,20 @@ internal class IntegrationTest { val contact = verifyContactCreated() assertThat(contact.type.code, equalTo(EMAIL.code)) - assertThat(contact.description, equalTo("Email - was involved in an incident that has a very, very long subject that surpassed the 200 character limit and therefore has been truncated to meet the character limitations for the description in ~")) - assertThat(contact.notes, equalTo(""" + assertThat( + contact.description, + equalTo("Email - was involved in an incident that has a very, very long subject that surpassed the 200 character limit and therefore has been truncated to meet the character limitations for the description in ~") + ) + assertThat( + contact.notes, equalTo( + """ |This contact was created automatically from a forwarded email sent by example@justice.gov.uk at 12:34 on 01/01/2020. |Subject: A000001 was involved in an incident that has a very, very long subject that surpassed the 200 character limit and therefore has been truncated to meet the character limitations for the description in Delius. | |Example message - |""".trimMargin())) + |""".trimMargin() + ) + ) assertThat( contact.externalReference, equalTo("urn:uk:gov:hmpps:justice-email:00000000-0000-0000-0000-000000000000")