File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/test/java/examples/simple Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,9 @@ public void testSelect() {
91
91
try (SqlSession session = sqlSessionFactory .openSession ()) {
92
92
PersonMapper mapper = session .getMapper (PersonMapper .class );
93
93
94
- List <PersonRecord > rows = mapper .select (c -> c .applyWhere (this ::commonWhere ).orderBy (id ));
94
+ List <PersonRecord > rows = mapper .select (c ->
95
+ c .applyWhere (this ::commonWhere )
96
+ .orderBy (id ));
95
97
96
98
assertThat (rows .size ()).isEqualTo (3 );
97
99
}
@@ -102,8 +104,9 @@ public void testUpdate() {
102
104
try (SqlSession session = sqlSessionFactory .openSession ()) {
103
105
PersonMapper mapper = session .getMapper (PersonMapper .class );
104
106
105
- int rows = mapper
106
- .update (c -> c .set (occupation ).equalToStringConstant ("worker" ).applyWhere (this ::commonWhere ));
107
+ int rows = mapper .update (c ->
108
+ c .set (occupation ).equalToStringConstant ("worker" )
109
+ .applyWhere (this ::commonWhere ));
107
110
108
111
assertThat (rows ).isEqualTo (3 );
109
112
}
You can’t perform that action at this time.
0 commit comments