DATACMNS-1750 - Polishing.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user