@Test public void testDelete() { PagedSet<PluginDefinition> beforeDelete = sut.findSortedByRecent(1, 9); assertEquals(3, beforeDelete.getTotal()); PluginDefinition shouldHaveThisPlugin = sut.findByUrl("http: sut.delete(shouldHaveThisPlugin); PagedSet<PluginDefinition> afterDelete = sut.findSortedByRecent(1, 9); assertEquals(2, afterDelete.getTotal()); }
@Override public void delete(final PluginDefinition inPlugin) { inPlugin.setShowInGallery(false); getEntityManager().persist(inPlugin); }
PluginDefinitionMapper extends CommonGadgetDefinitionMapper<PluginDefinition> implements
        GalleryItemMapper<PluginDefinition> { @Override public void delete(final PluginDefinition inPlugin) { inPlugin.setShowInGallery(false); getEntityManager().persist(inPlugin); } }
PluginDefinitionMapper extends CommonGadgetDefinitionMapper<PluginDefinition> implements
        GalleryItemMapper<PluginDefinition> { @Override public void delete(final PluginDefinition inPlugin) { inPlugin.setShowInGallery(false); getEntityManager().persist(inPlugin); } PluginDefinitionMapper(final QueryOptimizer inQueryOptimizer); }
PluginDefinitionMapper extends CommonGadgetDefinitionMapper<PluginDefinition> implements
        GalleryItemMapper<PluginDefinition> { @Override public void delete(final PluginDefinition inPlugin) { inPlugin.setShowInGallery(false); getEntityManager().persist(inPlugin); } PluginDefinitionMapper(final QueryOptimizer inQueryOptimizer); @SuppressWarnings("unchecked") @Override void refreshGadgetDefinitionUserCounts(); @Override void delete(final PluginDefinition inPlugin); }
PluginDefinitionMapper extends CommonGadgetDefinitionMapper<PluginDefinition> implements
        GalleryItemMapper<PluginDefinition> { @Override public void delete(final PluginDefinition inPlugin) { inPlugin.setShowInGallery(false); getEntityManager().persist(inPlugin); } PluginDefinitionMapper(final QueryOptimizer inQueryOptimizer); @SuppressWarnings("unchecked") @Override void refreshGadgetDefinitionUserCounts(); @Override void delete(final PluginDefinition inPlugin);  }