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() {
9191 try (SqlSession session = sqlSessionFactory .openSession ()) {
9292 PersonMapper mapper = session .getMapper (PersonMapper .class );
9393
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 ));
9597
9698 assertThat (rows .size ()).isEqualTo (3 );
9799 }
@@ -102,8 +104,9 @@ public void testUpdate() {
102104 try (SqlSession session = sqlSessionFactory .openSession ()) {
103105 PersonMapper mapper = session .getMapper (PersonMapper .class );
104106
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 ));
107110
108111 assertThat (rows ).isEqualTo (3 );
109112 }
You can’t perform that action at this time.
0 commit comments