@Test public void testDelete() throws Exception { BlogEntry blogEntry = new BlogEntryTestdataBuilder( databaseRule.getEntityManager()).buildAndSave(); EasyMock.expect(conversationMock.isTransient()).andReturn(false) .anyTimes(); mockProvider.replayAll(); blogEntryService.setId(blogEntry.getId()); blogEntryService.getInstance(); blogEntryService.delete(); mockProvider.verifyAll(); BlogEntry loadObject = databaseRule.getTransactionHelper().loadObject( BlogEntry.class, blogEntry.getId()); Assert.assertNull(loadObject); }
public boolean delete() { log.info("delete blog entry " + instance); blogEntryDao.remove(instance); end(); return true; }
BlogEntryService implements Serializable { public boolean delete() { log.info("delete blog entry " + instance); blogEntryDao.remove(instance); end(); return true; } }
BlogEntryService implements Serializable { public boolean delete() { log.info("delete blog entry " + instance); blogEntryDao.remove(instance); end(); return true; }  }
BlogEntryService implements Serializable { public boolean delete() { log.info("delete blog entry " + instance); blogEntryDao.remove(instance); end(); return true; }  Long getId(); void setId(Long id); @Produces BlogEntry getInstance(); boolean newInstance(); boolean persistOrUpdate(); boolean delete(); BlogEntryDao get(); }
BlogEntryService implements Serializable { public boolean delete() { log.info("delete blog entry " + instance); blogEntryDao.remove(instance); end(); return true; }  Long getId(); void setId(Long id); @Produces BlogEntry getInstance(); boolean newInstance(); boolean persistOrUpdate(); boolean delete(); BlogEntryDao get();  }