@@ -554,12 +554,12 @@ void exectuesSearchThatTakesASort() throws Exception {
554554 assertThat (findBySortedLink .getVariableNames ()).contains ("sort" , "projection" );
555555
556556 // Assert results returned as specified
557- client .follow (findBySortedLink .expand (Arrays . asList ( "title" , " desc") )).//
557+ client .follow (findBySortedLink .expand ("title, desc" )).//
558558 andExpect (jsonPath ("$._embedded.books[0].title" ).value ("Spring Data (Second Edition)" )).//
559559 andExpect (jsonPath ("$._embedded.books[1].title" ).value ("Spring Data" )).//
560560 andExpect (client .hasLinkWithRel (IanaLinkRelations .SELF ));
561561
562- client .follow (findBySortedLink .expand (Arrays . asList ( "title" , " asc") )).//
562+ client .follow (findBySortedLink .expand ("title, asc" )).//
563563 andExpect (jsonPath ("$._embedded.books[0].title" ).value ("Spring Data" )).//
564564 andExpect (jsonPath ("$._embedded.books[1].title" ).value ("Spring Data (Second Edition)" )).//
565565 andExpect (client .hasLinkWithRel (IanaLinkRelations .SELF ));
@@ -649,12 +649,12 @@ void exectuesSearchThatTakesAMappedSortProperty() throws Exception {
649649 assertThat (findBySortedLink .getVariableNames ()).contains ("sort" , "projection" );
650650
651651 // Assert results returned as specified
652- client .follow (findBySortedLink .expand (Arrays . asList ( "sales" , " desc") )).//
652+ client .follow (findBySortedLink .expand ("sales, desc" )).//
653653 andExpect (jsonPath ("$._embedded.books[0].title" ).value ("Spring Data (Second Edition)" )).//
654654 andExpect (jsonPath ("$._embedded.books[1].title" ).value ("Spring Data" )).//
655655 andExpect (client .hasLinkWithRel (IanaLinkRelations .SELF ));
656656
657- client .follow (findBySortedLink .expand (Arrays . asList ( "sales" , " asc") )).//
657+ client .follow (findBySortedLink .expand ("sales, asc" )).//
658658 andExpect (jsonPath ("$._embedded.books[0].title" ).value ("Spring Data" )).//
659659 andExpect (jsonPath ("$._embedded.books[1].title" ).value ("Spring Data (Second Edition)" )).//
660660 andExpect (client .hasLinkWithRel (IanaLinkRelations .SELF ));
@@ -669,12 +669,12 @@ void exectuesCustomQuerySearchThatTakesAMappedSortProperty() throws Exception {
669669 assertThat (findByLink .isTemplated ()).isTrue ();
670670
671671 // Assert results returned as specified
672- client .follow (findByLink .expand ("0" , "10" , Arrays . asList ( "sales" , " desc") )).//
672+ client .follow (findByLink .expand ("0" , "10" , "sales, desc" )).//
673673 andExpect (jsonPath ("$._embedded.books[0].title" ).value ("Spring Data (Second Edition)" )).//
674674 andExpect (jsonPath ("$._embedded.books[1].title" ).value ("Spring Data" )).//
675675 andExpect (client .hasLinkWithRel (IanaLinkRelations .SELF ));
676676
677- client .follow (findByLink .expand ("0" , "10" , Arrays .asList ("unknown" , " asc" , "sales" , " asc" ))).//
677+ client .follow (findByLink .expand ("0" , "10" , Arrays .asList ("unknown, asc" , "sales, asc" ))).//
678678 andExpect (jsonPath ("$._embedded.books[0].title" ).value ("Spring Data" )).//
679679 andExpect (jsonPath ("$._embedded.books[1].title" ).value ("Spring Data (Second Edition)" )).//
680680 andExpect (client .hasLinkWithRel (IanaLinkRelations .SELF ));
@@ -706,7 +706,7 @@ void appliesSortByEmbeddedAssociation() throws Exception {
706706 assertThat (findBySortedLink .getVariableNames ()).contains ("sort" , "projection" );
707707
708708 // Assert results returned as specified
709- client .follow (findBySortedLink .expand (Arrays . asList ( "offer.price" , " desc") )).//
709+ client .follow (findBySortedLink .expand ("offer.price, desc" )).//
710710 andExpect (jsonPath ("$._embedded.books[0].title" ).value ("Spring Data (Second Edition)" )).//
711711 andExpect (jsonPath ("$._embedded.books[1].title" ).value ("Spring Data" )).//
712712 andExpect (client .hasLinkWithRel (IanaLinkRelations .SELF ));
0 commit comments