DATACMNS-1750 - Polishing.

This commit is contained in:
Mark Paluch
2020-06-22 15:26:50 +02:00
parent 75f91975df
commit 06184a3be5

View File

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