@Test void testDelete() { Plugin plugin = when(mock(Plugin.class).getId()).thenReturn("plugin0").getMock(); pluginSecurityRepositoryDecorator.delete(plugin); verify(mutableAclService).deleteAcl(new PluginIdentity("plugin0"), true); verify(delegateRepository).delete(plugin); }
@Override public void delete(Plugin plugin) { deleteAcl(plugin); super.delete(plugin); }
PluginSecurityRepositoryDecorator extends AbstractRepositoryDecorator<Plugin> { @Override public void delete(Plugin plugin) { deleteAcl(plugin); super.delete(plugin); } }
PluginSecurityRepositoryDecorator extends AbstractRepositoryDecorator<Plugin> { @Override public void delete(Plugin plugin) { deleteAcl(plugin); super.delete(plugin); } PluginSecurityRepositoryDecorator(
      Repository<Plugin> delegateRepository, MutableAclService mutableAclService); }
PluginSecurityRepositoryDecorator extends AbstractRepositoryDecorator<Plugin> { @Override public void delete(Plugin plugin) { deleteAcl(plugin); super.delete(plugin); } PluginSecurityRepositoryDecorator(
      Repository<Plugin> delegateRepository, MutableAclService mutableAclService); @Override void add(Plugin plugin); @Override Integer add(Stream<Plugin> pluginStream); @Override void delete(Plugin plugin); @Override void deleteById(Object pluginId); @Override void deleteAll(); @Override void delete(Stream<Plugin> pluginStream); @Override void deleteAll(Stream<Object> ids); }
PluginSecurityRepositoryDecorator extends AbstractRepositoryDecorator<Plugin> { @Override public void delete(Plugin plugin) { deleteAcl(plugin); super.delete(plugin); } PluginSecurityRepositoryDecorator(
      Repository<Plugin> delegateRepository, MutableAclService mutableAclService); @Override void add(Plugin plugin); @Override Integer add(Stream<Plugin> pluginStream); @Override void delete(Plugin plugin); @Override void deleteById(Object pluginId); @Override void deleteAll(); @Override void delete(Stream<Plugin> pluginStream); @Override void deleteAll(Stream<Object> ids);  }