From c0bfdfc2f68e6a81b49e06e95535a0fb4a48db67 Mon Sep 17 00:00:00 2001 From: btyanagawamg Date: Thu, 4 Jul 2019 11:24:40 +0900 Subject: [PATCH] [DATACMNS-1496] apply removed deprecations at Spring Data Commons 2.2 #926 --- .../org/terasoluna/gfw/web/pagination/PaginationInfoTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(