diff --git a/spring/src/test/java/com/example/PostControllerTest.java b/spring/src/test/java/com/example/PostControllerTest.java index 22570885c..0c0a3c894 100644 --- a/spring/src/test/java/com/example/PostControllerTest.java +++ b/spring/src/test/java/com/example/PostControllerTest.java @@ -5,6 +5,7 @@ import io.restassured.http.ContentType; import org.junit.jupiter.api.Test; import org.springframework.data.domain.PageImpl; +import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import java.util.List; @@ -29,7 +30,9 @@ public void testGetAll() { List.of( Post.of(UUID.randomUUID(), "foo", "bar"), Post.of(UUID.randomUUID(), "foo2", "bar2") - ) + ), + PageRequest.of(0, 10), + 15 ) );