Skip to content

Commit

Permalink
[DATACMNS-1496] apply removed deprecations at Spring Data Commons 2.2 #…
Browse files Browse the repository at this point in the history
  • Loading branch information
btyanagawamg committed Oct 18, 2019
1 parent b51eb7f commit c0bfdfc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -110,11 +111,10 @@ public void testCreateAttributeMap_SortSet() {

int page = 1;
int size = 1;
Sort mockedSort = new Sort(Direction.DESC, "id");

// run
Map<String, Object> attributesMap = PaginationInfo.createAttributeMap(
page, size, mockedSort);
page, size, by(Direction.DESC, "id"));

// assert
assertThat(Integer.valueOf(attributesMap.get("page").toString()), is(
Expand Down

0 comments on commit c0bfdfc

Please sign in to comment.