Skip to content

Commit 315b1d8

Browse files
committed
fixes #1369 A correction in a test.
1 parent 783c3a8 commit 315b1d8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/test/java/org/apache/ibatis/binding/BindingTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ public void shouldExecuteBoundSelectBlogUsingConstructorWithResultMapAndProperti
383383
assertEquals(101, author.getId());
384384
assertEquals("[email protected]", author.getEmail());
385385
assertEquals("jim", author.getUsername());
386+
assertEquals(Section.NEWS, author.getFavouriteSection());
386387
List<Post> posts = blog.getPosts();
387388
assertTrue("posts should not be empty", posts != null);
388389
assertEquals(2, posts.size());

src/test/java/org/apache/ibatis/binding/BoundAuthorMapper.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<result column="author_password" property="password"/>
4040
<result column="author_email" property="email"/>
4141
<result column="author_bio" property="bio"/>
42-
<result column="favourite_section" javaType="org.apache.ibatis.domain.blog.Section"/>
42+
<result column="favourite_section" property="favouriteSection" javaType="org.apache.ibatis.domain.blog.Section"/>
4343
</resultMap>
4444

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

0 commit comments

Comments
 (0)