### 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()); Page<OrderDTO> orderDTOPage = new PageImpl<>(orderDTOList , pageable , orderMasterPage.getTotalElements()); return orderDTOPage; }  @Override @Transactional OrderDTO create(OrderDTO orderDTO); @Override OrderDTO findOne(String orderId); @Override Page<OrderDTO> findList(String buyerOpenid, Pageable pageable); @Override Page<OrderDTO> findList(Pageable pageable); @Override Page<OrderDTO> findOrderMastersByCreateTimeDesc(Pageable pageable); @Override List<OrderDTO> findListStats(String buyerOpenid, Integer orderStatus); @Override @Transactional OrderDTO cancel(OrderDTO orderDTO); @Override @Transactional OrderDTO finish(OrderDTO orderDTO); @Override @Transactional OrderDTO paid(OrderDTO orderDTO);  }### Answer:
@Test public void findList() { PageRequest request = new PageRequest(0 , 2); Page<OrderDTO> orderDTOPage = orderService.findList(BUYER_OPENID, request); Assert.assertNotEquals(0 , orderDTOPage.getTotalElements()); }
@Test public void findListAll() { PageRequest request = new PageRequest(0 , 2); Page<OrderDTO> orderDTOPage = orderService.findList(request); Assert.assertNotEquals(0 , orderDTOPage.getTotalElements()); }