@Test void deleteByIdGivenIdNullThenThrowException() { assertThrows(NotFoundException.class, () -> { specificationService.deleteById(null); }); }
@Override public Long deleteById(Long id) { log.info(LogMessage.IN_DELETE_BY_ID, id); specificationRepo.delete(findById(id)); return id; }
SpecificationServiceImpl implements SpecificationService { @Override public Long deleteById(Long id) { log.info(LogMessage.IN_DELETE_BY_ID, id); specificationRepo.delete(findById(id)); return id; } }
SpecificationServiceImpl implements SpecificationService { @Override public Long deleteById(Long id) { log.info(LogMessage.IN_DELETE_BY_ID, id); specificationRepo.delete(findById(id)); return id; }  }
SpecificationServiceImpl implements SpecificationService { @Override public Long deleteById(Long id) { log.info(LogMessage.IN_DELETE_BY_ID, id); specificationRepo.delete(findById(id)); return id; }  @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 Long deleteById(Long id) { log.info(LogMessage.IN_DELETE_BY_ID, id); specificationRepo.delete(findById(id)); return id; }  @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();  }