@Test public void testFindAll() throws Exception { System.out.println(categoryService.findAll()); }
@Override public List<CategoryDto> findAll() { List<String> categoryStrings = categoryRepository.findAllConcatenatedCategory(); return categoryStrings.stream() .map(string -> new CategoryDto(Categories.fromCategory(string))) .collect(Collectors.toList()); }
CategoryServiceImpl implements CategoryService { @Override public List<CategoryDto> findAll() { List<String> categoryStrings = categoryRepository.findAllConcatenatedCategory(); return categoryStrings.stream() .map(string -> new CategoryDto(Categories.fromCategory(string))) .collect(Collectors.toList()); } }
CategoryServiceImpl implements CategoryService { @Override public List<CategoryDto> findAll() { List<String> categoryStrings = categoryRepository.findAllConcatenatedCategory(); return categoryStrings.stream() .map(string -> new CategoryDto(Categories.fromCategory(string))) .collect(Collectors.toList()); }  }
CategoryServiceImpl implements CategoryService { @Override public List<CategoryDto> findAll() { List<String> categoryStrings = categoryRepository.findAllConcatenatedCategory(); return categoryStrings.stream() .map(string -> new CategoryDto(Categories.fromCategory(string))) .collect(Collectors.toList()); }  @Override List<CategoryDto> findAll(); @Override List<CategoryDto> search(String keyword); }
CategoryServiceImpl implements CategoryService { @Override public List<CategoryDto> findAll() { List<String> categoryStrings = categoryRepository.findAllConcatenatedCategory(); return categoryStrings.stream() .map(string -> new CategoryDto(Categories.fromCategory(string))) .collect(Collectors.toList()); }  @Override List<CategoryDto> findAll(); @Override List<CategoryDto> search(String keyword);  }