Skip to content

Commit

Permalink
fixes mybatis#1369 A correction in a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
harawata committed Oct 31, 2018
1 parent 783c3a8 commit 315b1d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/test/java/org/apache/ibatis/binding/BindingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ public void shouldExecuteBoundSelectBlogUsingConstructorWithResultMapAndProperti
assertEquals(101, author.getId());
assertEquals("[email protected]", author.getEmail());
assertEquals("jim", author.getUsername());
assertEquals(Section.NEWS, author.getFavouriteSection());
List<Post> posts = blog.getPosts();
assertTrue("posts should not be empty", posts != null);
assertEquals(2, posts.size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<result column="author_password" property="password"/>
<result column="author_email" property="email"/>
<result column="author_bio" property="bio"/>
<result column="favourite_section" javaType="org.apache.ibatis.domain.blog.Section"/>
<result column="favourite_section" property="favouriteSection" javaType="org.apache.ibatis.domain.blog.Section"/>
</resultMap>

<insert id="insertAuthor" parameterType="org.apache.ibatis.domain.blog.Author">
Expand Down

0 comments on commit 315b1d8

Please sign in to comment.