generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29c9d9f
commit 15a1250
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected] 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 [email protected] 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") | ||
|