@Before public void initData() { if (null != cobarAdapter && null != cobarAdapter.getDataSource()) { try { cobarAdapter.destroy(); } catch (Exception e) { logger.error("destroy adpter error"); Assert.fail(); } } }
@After public void end() { try { if (null != cobarAdapter && null != cobarAdapter.getDataSource()) { cobarAdapter.destroy(); } } catch (Exception e) { logger.error("destroy adpter error"); Assert.fail(); } }