@Test void findAllTest() { List<Specification> genericEntities = new ArrayList<>(Arrays.asList(new Specification(), new Specification())); when(specificationRepo.findAll()).thenReturn(genericEntities); List<Specification> foundEntities = specificationService.findAll(); assertEquals(genericEntities, foundEntities); }
@Override public List<Specification> findAll() { log.info(LogMessage.IN_FIND_ALL); return specificationRepo.findAll(); }
SpecificationServiceImpl implements SpecificationService { @Override public List<Specification> findAll() { log.info(LogMessage.IN_FIND_ALL); return specificationRepo.findAll(); } }
SpecificationServiceImpl implements SpecificationService { @Override public List<Specification> findAll() { log.info(LogMessage.IN_FIND_ALL); return specificationRepo.findAll(); }  }
SpecificationServiceImpl implements SpecificationService { @Override public List<Specification> findAll() { log.info(LogMessage.IN_FIND_ALL); return specificationRepo.findAll(); }  @Override Specification save(Specification specification); @Override Specification findById(Long id); @Override List<Specification> findAll(); @Override Long deleteById(Long id); @Override Specification findByName(String specificationName); @Override List<SpecificationNameDto> findAllSpecificationDto(); }
SpecificationServiceImpl implements SpecificationService { @Override public List<Specification> findAll() { log.info(LogMessage.IN_FIND_ALL); return specificationRepo.findAll(); }  @Override Specification save(Specification specification); @Override Specification findById(Long id); @Override List<Specification> findAll(); @Override Long deleteById(Long id); @Override Specification findByName(String specificationName); @Override List<SpecificationNameDto> findAllSpecificationDto();  }