Skip to content

Commit

Permalink
PI-1668 added potential matches to results (#2892)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevomcallister authored Dec 7, 2023
1 parent 52ab323 commit 7ef30b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ internal class NomsNumberIntegrationTest {
.andExpect(status().is2xxSuccessful).andReturn()

val detailResponse = objectMapper.readValue(result.response.contentAsString, NomsUpdates::class.java)
Assertions.assertThat(detailResponse.personMatches.first().matchReason.message).isEqualTo("CRN not found in Delius")
Assertions.assertThat(detailResponse.personMatches.first().matchReason.message).isEqualTo("Custody record not found in Delius without a booking reference")
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class PersonService(
private fun checkDelius(person: Person?, crn: String) =
when {
person == null -> {
PersonMatch(crn, null, MatchReason("CRN not found in Delius"))
PersonMatch(crn, null, MatchReason("Custody record not found in Delius without a booking reference"))
}

person.nomsNumber != null -> {
Expand Down

0 comments on commit 7ef30b4

Please sign in to comment.