use of org.junit.AfterClass in project cloudstack by apache.
the class NetworkProviderTest method globalTearDown.
@AfterClass
public static void globalTearDown() throws Exception {
s_lockMaster.cleanupForServer(s_msId);
JmxUtil.unregisterMBean("Locks", "Locks");
s_lockMaster = null;
AbstractApplicationContext ctx = (AbstractApplicationContext) ComponentContext.getApplicationContext();
Map<String, ComponentLifecycle> lifecycleComponents = ctx.getBeansOfType(ComponentLifecycle.class);
for (ComponentLifecycle bean : lifecycleComponents.values()) {
bean.stop();
}
ctx.close();
s_logger.info("destroying mysql server instance running at port <" + s_mysqlSrverPort + ">");
TestDbSetup.destroy(s_mysqlSrverPort, null);
}
use of org.junit.AfterClass in project dal by ctripcorp.
the class DalConcurrentMysqlTest method tearDownAfterClass.
@AfterClass
public static void tearDownAfterClass() throws Exception {
DalHints hints = new DalHints();
String[] sqls = new String[] { DROP_TABLE_SQL };
client.batchUpdate(sqls, hints);
}
use of org.junit.AfterClass in project dal by ctripcorp.
the class OracleTestInitializer method tearDownAfterClass.
@AfterClass
public static void tearDownAfterClass() throws Exception {
DalHints hints = new DalHints();
String[] sqls = new String[] { DROP_TABLE_SEQ, DROP_TABLE_TRIG, DROP_TABLE_SQL };
client.batchUpdate(sqls, hints);
}
use of org.junit.AfterClass in project dal by ctripcorp.
the class DalColumnMapRowMapperTest method tearDownAfterClass.
@AfterClass
public static void tearDownAfterClass() throws Exception {
DalHints hints = new DalHints();
StatementParameters parameters = new StatementParameters();
String[] sqls = new String[] { DROP_TABLE_SQL };
for (int i = 0; i < sqls.length; i++) {
client.update(sqls[i], parameters, hints);
}
}
use of org.junit.AfterClass in project dal by ctripcorp.
the class MySqlHelperTest method tearDownAfterClass.
@AfterClass
public static void tearDownAfterClass() throws Exception {
DalHints hints = new DalHints();
String[] sqls = new String[] { DROP_TABLE_SQL_MYSQL_TPL };
clientMySql.batchUpdate(sqls, hints);
}
Aggregations