@Test void testDeleteById() { Object entityId = "id"; repositoryValidationDecorator.deleteById(entityId); verify(delegateRepository).deleteById(entityId); verify(defaultValueReferenceValidator).validateEntityNotReferencedById(entityId, entityType); }
@Override public void deleteById(Object id) { defaultValueReferenceValidator.validateEntityNotReferencedById(id, getEntityType()); delegate().deleteById(id); }
RepositoryValidationDecorator extends AbstractRepositoryDecorator<Entity> { @Override public void deleteById(Object id) { defaultValueReferenceValidator.validateEntityNotReferencedById(id, getEntityType()); delegate().deleteById(id); } }
RepositoryValidationDecorator extends AbstractRepositoryDecorator<Entity> { @Override public void deleteById(Object id) { defaultValueReferenceValidator.validateEntityNotReferencedById(id, getEntityType()); delegate().deleteById(id); } RepositoryValidationDecorator(
      DataService dataService,
      Repository<Entity> delegateRepository,
      EntityAttributesValidator entityAttributesValidator,
      DefaultValueReferenceValidator defaultValueReferenceValidator); }
RepositoryValidationDecorator extends AbstractRepositoryDecorator<Entity> { @Override public void deleteById(Object id) { defaultValueReferenceValidator.validateEntityNotReferencedById(id, getEntityType()); delegate().deleteById(id); } RepositoryValidationDecorator(
      DataService dataService,
      Repository<Entity> delegateRepository,
      EntityAttributesValidator entityAttributesValidator,
      DefaultValueReferenceValidator defaultValueReferenceValidator); @Override void update(Entity entity); @Override void update(Stream<Entity> entities); @Override void add(Entity entity); @Override Integer add(Stream<Entity> entities); @Override void delete(Entity entity); @Override void deleteById(Object id); @Override void deleteAll(); @Override void delete(Stream<Entity> entities); @Override void deleteAll(Stream<Object> ids); }
RepositoryValidationDecorator extends AbstractRepositoryDecorator<Entity> { @Override public void deleteById(Object id) { defaultValueReferenceValidator.validateEntityNotReferencedById(id, getEntityType()); delegate().deleteById(id); } RepositoryValidationDecorator(
      DataService dataService,
      Repository<Entity> delegateRepository,
      EntityAttributesValidator entityAttributesValidator,
      DefaultValueReferenceValidator defaultValueReferenceValidator); @Override void update(Entity entity); @Override void update(Stream<Entity> entities); @Override void add(Entity entity); @Override Integer add(Stream<Entity> entities); @Override void delete(Entity entity); @Override void deleteById(Object id); @Override void deleteAll(); @Override void delete(Stream<Entity> entities); @Override void deleteAll(Stream<Object> ids);  }