mybatis中对分页进行测试

mybatis中,如何对分页进行测试图片说明

你是要实现分页?分页可以使用pagehelper插件

<select id="selectByPageAndWhereSql" parameterType="tm.change.util.Pagination" resultMap="BaseResultMap">
    select * from (
    select country.*,rownum r from (select * from
    country c) country
    where 1=1
    <include refid="query_country_where"/>
    )
    where r&gt;=#{startSize} and
    r&lt;=#{endSize}
</select>


/**
 * 带条件查询分页
 */
List<Country> selectByPageAndWhereSql(Pagination<Country> pagination);

    在测试方法中只需要将调用这个方法  里面的参数串一个pagination,pagination详情请点http://blog.csdn.net/u013132051/article/details/51753312