Ejemplo n.º 1
0
 @Test
 //    @Ignore
 public void selectLimitTest() {
   final int minLimit = 0;
   final int maxLimit = 10;
   List<City> cityList = cityMapper.findByLimit(minLimit, maxLimit);
   int i = 0;
   for (City c : cityList) {
     i++;
     System.out.println(i + ":" + c.getName());
   }
   assert cityList.size() == maxLimit - minLimit + 1;
 }
Ejemplo n.º 2
0
 @Test
 public void countTest() {
   int count = cityMapper.countNum();
   System.out.println(count);
 }