Пример #1
0
 /**
  * 分页查询
  *
  * @param firstResult
  * @throws Exception
  */
 @Test
 public void testfindDpNewsByLimit() {
   int firstResult = 0;
   int maxResults = 10;
   List<DpNews> list = dpNewsService.findDpNewsByLimit(firstResult, maxResults);
   Assert.assertNotNull(list);
   Assert.assertEquals(5, list.size());
 }
Пример #2
0
 /** 删除多条数据测试. */
 @Test
 public void testdeleteDpNewsList() {
   String[] idArray = {"4", "5"};
   try {
     dpNewsService.deleteDpNewsList(idArray);
   } catch (Exception e) {
     Assert.fail(e.getMessage());
   }
 }