@@ -33,7 +33,7 @@ void init() {
33
33
void fullPage () {
34
34
final Pageable pageable = Pageable .ofSize (size );
35
35
final Page <Integer > page = ints .stream ()
36
- .collect (PageCollector .toFilteredSortedPage (pageable , i -> i > 0 , Integer ::compare ));
36
+ .collect (PageCollectors .toFilteredSortedPage (pageable , i -> i > 0 , Integer ::compare ));
37
37
38
38
assertEquals (size , page .getSize ());
39
39
assertTrue (page .getContent ().size () <= size );
@@ -52,7 +52,7 @@ void fullPage() {
52
52
void emptyPage () {
53
53
final Pageable pageable = Pageable .ofSize (size );
54
54
final Page <Integer > page = Collections .<Integer >emptyList ().stream ()
55
- .collect (PageCollector .toFilteredSortedPage (pageable , i -> i > 0 , Integer ::compare ));
55
+ .collect (PageCollectors .toFilteredSortedPage (pageable , i -> i > 0 , Integer ::compare ));
56
56
57
57
assertEquals (size , page .getSize ());
58
58
assertTrue (page .getContent ().isEmpty ());
@@ -62,7 +62,7 @@ void emptyPage() {
62
62
void secondPage () {
63
63
final Pageable pageable = Pageable .ofSize (size / 4 ).withPage (2 );
64
64
final Page <Integer > page = ints .stream ()
65
- .collect (PageCollector .toFilteredSortedPage (pageable , i -> i < 0 , Integer ::compare ));
65
+ .collect (PageCollectors .toFilteredSortedPage (pageable , i -> i < 0 , Integer ::compare ));
66
66
67
67
assertEquals (size / 4 , page .getSize ());
68
68
assertTrue (page .getContent ().size () <= size );
@@ -85,7 +85,7 @@ void checkData() {
85
85
final int size = datas .size ();
86
86
final Pageable pageable = Pageable .ofSize (size / 2 ).withPage (0 );
87
87
final Page <String > page = datas .stream ()
88
- .collect (PageCollector .toFilteredSortedPage (pageable , t -> t .contains ("i" ), String ::compareTo ));
88
+ .collect (PageCollectors .toFilteredSortedPage (pageable , t -> t .contains ("i" ), String ::compareTo ));
89
89
90
90
assertEquals (size / 2 , page .getSize ());
91
91
assertEquals (size / 2 , page .getContent ().size ());
0 commit comments