assertEquals(2, resultHandler.count);
}
@Test
public void shouldOffsetAndLimitResultsUsingMapperClass() throws Exception {
BlogMapper mapper = manager.getMapper(BlogMapper.class);
List<Map> posts = mapper.selectAllPosts(new RowBounds(2, 3));
assertEquals(3, posts.size());
assertEquals(3, posts.get(0).get("ID"));
assertEquals(4, posts.get(1).get("ID"));
assertEquals(5, posts.get(2).get("ID"));
}