### Question:
CategoryServiceImpl implements CategoryService { @Transactional(propagation=Propagation.REQUIRED,readOnly=true) public List<Category> listAllCategory() { return categoryMapper.listAllCategory(); }  @Transactional(propagation=Propagation.REQUIRED,readOnly=true) List<Category> listAllCategory(); Category selectCategoryById(int id); void saveCategory(Category category); void updateCategory(Category category); Category findCategoryById(int id);  }### Answer:
@Test public void listAllCategory(){ List<Category> list = categoryService.listAllCategory(); for (Category category : list) { System.out.println(category); } }