DATACMNS-1750 - Polishing.

This commit is contained in:
Mark Paluch
2020-06-22 15:26:50 +02:00
parent 4bc474d8f4
commit 2c25a591fb

View File

@@ -33,7 +33,7 @@ import org.junit.jupiter.api.Test;
class PageImplUnitTests {
@Test
void assertEqualsForSimpleSetup() throws Exception {
void assertEqualsForSimpleSetup() {
PageImpl<String> page = new PageImpl<>(Collections.singletonList("Foo"));
@@ -42,7 +42,7 @@ class PageImplUnitTests {
}
@Test
void assertEqualsForComplexSetup() throws Exception {
void assertEqualsForComplexSetup() {
Pageable pageable = PageRequest.of(0, 10);
List<String> content = Collections.singletonList("Foo");
@@ -130,8 +130,7 @@ class PageImplUnitTests {
Page<Integer> transformed = new PageImpl<>(Arrays.asList("foo", "bar"), PageRequest.of(0, 2), 10)
.map(String::length);
assertThat(transformed.getContent()).hasSize(2);
assertThat(transformed.getContent()).contains(3, 3);
assertThat(transformed.getContent()).hasSize(2).contains(3, 3);
}
@Test // DATACMNS-713