File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/org/mybatis/dynamic/sql/util/mybatis3
test/java/examples/simple Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ static <T> MyBatis3SelectListHelper<T> allRows() {
96
96
*
97
97
* @return the helper that will select every row in a table in the specified order
98
98
*/
99
- static <T > MyBatis3SelectListHelper <T > allRowsOrderdBy (SortSpecification ...columns ) {
99
+ static <T > MyBatis3SelectListHelper <T > allRowsOrderedBy (SortSpecification ...columns ) {
100
100
return h -> h .orderBy (columns );
101
101
}
102
102
}
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public void testSelectAllOrdered() {
100
100
PersonMapper mapper = session .getMapper (PersonMapper .class );
101
101
102
102
List <PersonRecord > rows = mapper
103
- .select (MyBatis3SelectListHelper .allRowsOrderdBy (lastName .descending (), firstName .descending ()));
103
+ .select (MyBatis3SelectListHelper .allRowsOrderedBy (lastName .descending (), firstName .descending ()));
104
104
105
105
assertThat (rows .size ()).isEqualTo (6 );
106
106
assertThat (rows .get (0 ).getId ()).isEqualTo (5 );
@@ -487,7 +487,7 @@ public void testTypeHandledNotLike() {
487
487
public void testJoinAllRows () {
488
488
try (SqlSession session = sqlSessionFactory .openSession ()) {
489
489
PersonWithAddressMapper mapper = session .getMapper (PersonWithAddressMapper .class );
490
- List <PersonWithAddress > records = mapper .select (MyBatis3SelectListHelper .allRowsOrderdBy (id ));
490
+ List <PersonWithAddress > records = mapper .select (MyBatis3SelectListHelper .allRowsOrderedBy (id ));
491
491
492
492
assertThat (records .size ()).isEqualTo (6L );
493
493
assertThat (records .get (0 ).getId ()).isEqualTo (1 );
You can’t perform that action at this time.
0 commit comments