@Test void deleteEntity() { initEntityMeta(); Entity entity0 = mock(Entity.class); when(entity0.getIdValue()).thenReturn(1); indexActionRepositoryDecorator.delete(entity0); verify(delegateRepository, times(1)).delete(entity0); verify(indexActionRegisterService).register(entityType, 1); verifyNoMoreInteractions(indexActionRegisterService); }
@Override public void delete(Entity entity) { indexActionRegisterService.register(getEntityType(), entity.getIdValue()); registerRefEntityIndexActions(entity); delegate().delete(entity); }
IndexActionRepositoryDecorator extends AbstractRepositoryDecorator<Entity> { @Override public void delete(Entity entity) { indexActionRegisterService.register(getEntityType(), entity.getIdValue()); registerRefEntityIndexActions(entity); delegate().delete(entity); } }
IndexActionRepositoryDecorator extends AbstractRepositoryDecorator<Entity> { @Override public void delete(Entity entity) { indexActionRegisterService.register(getEntityType(), entity.getIdValue()); registerRefEntityIndexActions(entity); delegate().delete(entity); } IndexActionRepositoryDecorator(
      Repository<Entity> delegateRepository,
      IndexActionRegisterService indexActionRegisterService); }
IndexActionRepositoryDecorator extends AbstractRepositoryDecorator<Entity> { @Override public void delete(Entity entity) { indexActionRegisterService.register(getEntityType(), entity.getIdValue()); registerRefEntityIndexActions(entity); delegate().delete(entity); } IndexActionRepositoryDecorator(
      Repository<Entity> delegateRepository,
      IndexActionRegisterService indexActionRegisterService); @Override Set<RepositoryCapability> getCapabilities(); @Override void update(Entity entity); @Override void delete(Entity entity); @Override void deleteById(Object id); @Override void deleteAll(); @Override void add(Entity entity); @Override Integer add(Stream<Entity> entities); @Override void update(Stream<Entity> entities); @Override void delete(Stream<Entity> entities); @Override void deleteAll(Stream<Object> ids); }
IndexActionRepositoryDecorator extends AbstractRepositoryDecorator<Entity> { @Override public void delete(Entity entity) { indexActionRegisterService.register(getEntityType(), entity.getIdValue()); registerRefEntityIndexActions(entity); delegate().delete(entity); } IndexActionRepositoryDecorator(
      Repository<Entity> delegateRepository,
      IndexActionRegisterService indexActionRegisterService); @Override Set<RepositoryCapability> getCapabilities(); @Override void update(Entity entity); @Override void delete(Entity entity); @Override void deleteById(Object id); @Override void deleteAll(); @Override void add(Entity entity); @Override Integer add(Stream<Entity> entities); @Override void update(Stream<Entity> entities); @Override void delete(Stream<Entity> entities); @Override void deleteAll(Stream<Object> ids);  }