### Question:
OrderServiceImpl implements OrderService { @Override public Page<OrderDTO> findList(String buyerOpenid, Pageable pageable) { Page<OrderMaster> orderMasterPage = orderMasterRepository.findByBuyerOpenid(buyerOpenid, pageable); List<OrderDTO> orderDTOList = OrderMaster2OrderDTOConverter.convert(orderMasterPage.getContent()); return new PageImpl<OrderDTO>(orderDTOList, pageable, orderMasterPage.getTotalElements()); }  @Override @Transactional OrderDTO create(OrderDTO orderDTO); @Override OrderDTO findOne(String orderId); @Override Page<OrderDTO> findList(String buyerOpenid, Pageable pageable); @Override @Transactional OrderDTO cancel(OrderDTO orderDTO); @Override @Transactional OrderDTO finish(OrderDTO orderDTO); @Override @Transactional OrderDTO paid(OrderDTO orderDTO); @Override Page<OrderDTO> findList(Pageable pageable);  }### Answer:
@Test public void findList() throws Exception { PageRequest request = new PageRequest(0,2); Page<OrderDTO> orderDTOPage = orderService.findList(BUYER_OPENID, request); Assert.assertNotEquals(0, orderDTOPage.getTotalElements()); }
@Test public void list() { PageRequest request = new PageRequest(0,2); Page<OrderDTO> orderDTOPage = orderService.findList(request); Assert.assertTrue("查询所有的订单列表", orderDTOPage.getTotalElements() > 0); }