@Test public void testSave(){ App app = new App(); app.setAppName("test_app"); app.setAppKey("123456"); app.setAppDesc("测试应用"); assertTrue(appManager.save(app)); assertNotNull(appDao.findByName(app.getAppName())); }
public Boolean save(App app) { if (appDao.save(app)){ return appDao.index(app); } return Boolean.FALSE; }
AppManager { public Boolean save(App app) { if (appDao.save(app)){ return appDao.index(app); } return Boolean.FALSE; } }
AppManager { public Boolean save(App app) { if (appDao.save(app)){ return appDao.index(app); } return Boolean.FALSE; }  }
AppManager { public Boolean save(App app) { if (appDao.save(app)){ return appDao.index(app); } return Boolean.FALSE; }  Boolean delete(Long appId); Boolean save(App app); }
AppManager { public Boolean save(App app) { if (appDao.save(app)){ return appDao.index(app); } return Boolean.FALSE; }  Boolean delete(Long appId); Boolean save(App app);  }