@Test void testDelete() { String appId = "app"; App app = when(mock(App.class).getId()).thenReturn(appId).getMock(); appRepositoryDecorator.delete(app); verify(repository).deleteById(appId); }
@Override public void delete(App entity) { deleteById(entity.getId()); }
AppRepositoryDecorator extends AbstractRepositoryDecorator<App> { @Override public void delete(App entity) { deleteById(entity.getId()); } }
AppRepositoryDecorator extends AbstractRepositoryDecorator<App> { @Override public void delete(App entity) { deleteById(entity.getId()); } AppRepositoryDecorator(
      Repository<App> delegateRepository, AppManagerService appManagerService); }
AppRepositoryDecorator extends AbstractRepositoryDecorator<App> { @Override public void delete(App entity) { deleteById(entity.getId()); } AppRepositoryDecorator(
      Repository<App> delegateRepository, AppManagerService appManagerService); @Override void delete(App entity); @Override void deleteById(Object id); @Override void deleteAll(); @Override void update(App app); @Override void update(Stream<App> apps); }
AppRepositoryDecorator extends AbstractRepositoryDecorator<App> { @Override public void delete(App entity) { deleteById(entity.getId()); } AppRepositoryDecorator(
      Repository<App> delegateRepository, AppManagerService appManagerService); @Override void delete(App entity); @Override void deleteById(Object id); @Override void deleteAll(); @Override void update(App app); @Override void update(Stream<App> apps);  }