File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
java/org/apache/ibatis/submitted/hashmaptypehandler
resources/org/apache/ibatis/submitted/hashmaptypehandler Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ void shouldApplyHashMapTypeHandlerXml() {
7878 Mapper mapper = sqlSession .getMapper (Mapper .class );
7979 HashMap <String , String > map = new HashMap <>();
8080 map .put ("name" , "User1" );
81+ map .put ("dummy" , "NoSuchUser" );
8182 User user = mapper .getUserWithTypeHandlerXml (map );
8283 Assertions .assertNotNull (user );
8384 }
Original file line number Diff line number Diff line change 2727 </select >
2828
2929 <select id =" getUserWithTypeHandlerXml" resultType =" org.apache.ibatis.submitted.hashmaptypehandler.User" >
30- select * from users where name = #{name }
30+ select * from users where name = #{dummy }
3131 </select >
3232
3333</mapper >
You can’t perform that action at this time.
0 commit comments