@@ -13,28 +13,28 @@ public class OrderByClauseTest {
1313 void testOneExistingColumnDefaultOrderBy () {
1414 Query <Datatype > query = setUpModel (Datatype .class ).query ()
1515 .order ("wrapper_integer" );
16- new QueryVerification (query ).assertSectionEquals ("ORDER BY" , "`wrapper_integer` ASC " );
16+ new QueryVerification (query ).assertSectionEquals ("ORDER BY" , "`wrapper_integer`" );
1717 }
1818
1919 @ Test
2020 void testOneNonExistingColumnDefaultOrderBy () {
2121 Query <Datatype > query = setUpModel (Datatype .class ).query ()
2222 .order ("does_not_exist" );
23- new QueryVerification (query ).assertSectionEquals ("ORDER BY" , "`does_not_exist` ASC " );
23+ new QueryVerification (query ).assertSectionEquals ("ORDER BY" , "`does_not_exist`" );
2424 }
2525
2626 @ Test
2727 void testOneExistingColumnASCOrderBy () {
2828 Query <Datatype > query = setUpModel (Datatype .class ).query ()
2929 .order ("wrapper_integer" , false );
30- new QueryVerification (query ).assertSectionEquals ("ORDER BY" , "`wrapper_integer` ASC " );
30+ new QueryVerification (query ).assertSectionEquals ("ORDER BY" , "`wrapper_integer`" );
3131 }
3232
3333 @ Test
3434 void testOneNonExistingColumnASCOrderBy () {
3535 Query <Datatype > query = setUpModel (Datatype .class ).query ()
3636 .order ("does_not_exist" , false );
37- new QueryVerification (query ).assertSectionEquals ("ORDER BY" , "`does_not_exist` ASC " );
37+ new QueryVerification (query ).assertSectionEquals ("ORDER BY" , "`does_not_exist`" );
3838 }
3939
4040 @ Test
@@ -58,8 +58,8 @@ void testMultipleOrderByClausesOfASCOrder() {
5858 .order ("primitive_integer" );
5959
6060 new QueryVerification (query )
61- .assertSectionContains ("ORDER BY" , "`wrapper_integer` ASC " )
62- .assertSectionContains ("ORDER BY" , "`primitive_integer` ASC " );
61+ .assertSectionContains ("ORDER BY" , "`wrapper_integer`" )
62+ .assertSectionContains ("ORDER BY" , "`primitive_integer`" );
6363 }
6464
6565 @ Test
@@ -80,7 +80,7 @@ void testMultipleOrderByClausesOfMixedOrder() {
8080 .order ("primitive_integer" , true );
8181
8282 new QueryVerification (query )
83- .assertSectionContains ("ORDER BY" , "`wrapper_integer` ASC " )
83+ .assertSectionContains ("ORDER BY" , "`wrapper_integer`" )
8484 .assertSectionContains ("ORDER BY" , "`primitive_integer` DESC" );
8585 }
8686
@@ -92,7 +92,7 @@ void testMultipleOrderByClausesOfMixedOrderReversed() {
9292
9393 new QueryVerification (query )
9494 .assertSectionContains ("ORDER BY" , "`primitive_integer` DESC" )
95- .assertSectionContains ("ORDER BY" , "`wrapper_integer` ASC " );
95+ .assertSectionContains ("ORDER BY" , "`wrapper_integer`" );
9696 }
9797
9898}
0 commit comments