diff --git a/terasoluna-gfw-common-libraries/terasoluna-gfw-web/src/test/java/org/terasoluna/gfw/web/pagination/PaginationInfoTest.java b/terasoluna-gfw-common-libraries/terasoluna-gfw-web/src/test/java/org/terasoluna/gfw/web/pagination/PaginationInfoTest.java index 67204d3b0..166b96bf1 100644 --- a/terasoluna-gfw-common-libraries/terasoluna-gfw-web/src/test/java/org/terasoluna/gfw/web/pagination/PaginationInfoTest.java +++ b/terasoluna-gfw-common-libraries/terasoluna-gfw-web/src/test/java/org/terasoluna/gfw/web/pagination/PaginationInfoTest.java @@ -22,6 +22,7 @@ import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; +import static org.springframework.data.domain.Sort.by; import java.util.ArrayList; import java.util.Iterator; @@ -110,11 +111,10 @@ public void testCreateAttributeMap_SortSet() { int page = 1; int size = 1; - Sort mockedSort = new Sort(Direction.DESC, "id"); // run Map attributesMap = PaginationInfo.createAttributeMap( - page, size, mockedSort); + page, size, by(Direction.DESC, "id")); // assert assertThat(Integer.valueOf(attributesMap.get("page").toString()), is(