Exemplo n.º 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();
     }
   }
 }
Exemplo n.º 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();
    }
  }