@Test public void testDelete(){ assertTrue(appManager.delete(4L)); assertTrue(appManager.delete(404L)); }
public Boolean delete(Long appId){ App app = appDao.findById(appId); if (app == null){ return Boolean.TRUE; } if(appDao.unIndex(app)){ return appDao.delete(app.getId()); } return Boolean.FALSE; }
AppManager { public Boolean delete(Long appId){ App app = appDao.findById(appId); if (app == null){ return Boolean.TRUE; } if(appDao.unIndex(app)){ return appDao.delete(app.getId()); } return Boolean.FALSE; } }
AppManager { public Boolean delete(Long appId){ App app = appDao.findById(appId); if (app == null){ return Boolean.TRUE; } if(appDao.unIndex(app)){ return appDao.delete(app.getId()); } return Boolean.FALSE; }  }
AppManager { public Boolean delete(Long appId){ App app = appDao.findById(appId); if (app == null){ return Boolean.TRUE; } if(appDao.unIndex(app)){ return appDao.delete(app.getId()); } return Boolean.FALSE; }  Boolean delete(Long appId); Boolean save(App app); }
AppManager { public Boolean delete(Long appId){ App app = appDao.findById(appId); if (app == null){ return Boolean.TRUE; } if(appDao.unIndex(app)){ return appDao.delete(app.getId()); } return Boolean.FALSE; }  Boolean delete(Long appId); Boolean save(App app);  }