diff --git a/data-service/src/integrationTest/java/uk/gov/laa/ccms/data/service/ScopeLimitationServiceIntegrationTest.java b/data-service/src/integrationTest/java/uk/gov/laa/ccms/data/service/ScopeLimitationServiceIntegrationTest.java index f033d4c..5c92522 100644 --- a/data-service/src/integrationTest/java/uk/gov/laa/ccms/data/service/ScopeLimitationServiceIntegrationTest.java +++ b/data-service/src/integrationTest/java/uk/gov/laa/ccms/data/service/ScopeLimitationServiceIntegrationTest.java @@ -49,7 +49,7 @@ public void testGetScopeLimitations_MultiMatch() { // Call the service method ScopeLimitationDetails result = scopeLimitationService.getScopeLimitations( - scopeLimitationDetail, Pageable.ofSize(10).withPage(0)); + scopeLimitationDetail, Pageable.unpaged()); // Assert the proceeding assertNotNull(result); @@ -88,7 +88,7 @@ public void testGetScopeLimitations_SingleMatch() { // Call the service method ScopeLimitationDetails result = scopeLimitationService.getScopeLimitations( - scopeLimitationDetail, Pageable.ofSize(10).withPage(0)); + scopeLimitationDetail, Pageable.unpaged()); // Assert the proceeding assertNotNull(result);