use of org.apache.ibatis.domain.blog.ImmutableAuthor in project mybatis-3 by mybatis.
the class SqlSessionTest method shouldSelectOneImmutableAuthor.
@Test
void shouldSelectOneImmutableAuthor() {
try (SqlSession session = sqlMapper.openSession()) {
ImmutableAuthor author = session.selectOne("org.apache.ibatis.domain.blog.mappers.AuthorMapper.selectImmutableAuthor", new Author(101));
assertEquals(101, author.getId());
assertEquals(Section.NEWS, author.getFavouriteSection());
}
}
Aggregations