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() {
78
78
Mapper mapper = sqlSession .getMapper (Mapper .class );
79
79
HashMap <String , String > map = new HashMap <>();
80
80
map .put ("name" , "User1" );
81
+ map .put ("dummy" , "NoSuchUser" );
81
82
User user = mapper .getUserWithTypeHandlerXml (map );
82
83
Assertions .assertNotNull (user );
83
84
}
Original file line number Diff line number Diff line change 27
27
</select >
28
28
29
29
<select id =" getUserWithTypeHandlerXml" resultType =" org.apache.ibatis.submitted.hashmaptypehandler.User" >
30
- select * from users where name = #{name }
30
+ select * from users where name = #{dummy }
31
31
</select >
32
32
33
33
</mapper >
You can’t perform that action at this time.
0 commit comments