Skip to content

Commit e27d960

Browse files
Update src/test/kotlin/uk/gov/justice/digital/hmpps/personalrelationships/integration/resource/SearchContactsPaginationIntegrationTest.kt
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0b824bf commit e27d960

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/kotlin/uk/gov/justice/digital/hmpps/personalrelationships/integration/resource/SearchContactsPaginationIntegrationTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ class SearchContactsPaginationIntegrationTest : SecureAPIIntegrationTestBase() {
118118
assertThat(contactIds.distinct()).hasSize(50)
119119
// all contactIds from 2001 to 2050 should be present in the list
120120
assertThat(contactIds).containsAll(expectedIds(2001, 2050))
121-
assertThat(contactIds.min()).isEqualTo(2001)
122-
assertThat(contactIds.max()).isEqualTo(2050)
121+
assertThat(contactIds.minOrNull()).isEqualTo(2001)
122+
assertThat(contactIds.maxOrNull()).isEqualTo(2050)
123123
}
124124

125125
private fun getLastNames(sortValues: List<String>): List<String> {

0 commit comments

Comments
 (0)