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

    } catch (Exception e) {
      logger.error("destroy adpter error");
      Assert.fail();
    }
  }