use of org.junit.AfterClass in project dal by ctripcorp.
the class DalTableDaoShardByDbTableSqlSvrTest method tearDownAfterClass.
@AfterClass
public static void tearDownAfterClass() throws Exception {
DalHints hints = new DalHints();
String[] sqls = null;
// For Sql Server
hints = new DalHints();
for (int i = 0; i < mod; i++) {
sqls = new String[tableMod];
for (int j = 0; j < tableMod; j++) {
sqls[j] = String.format(DROP_TABLE_SQL_SQLSVR_TPL, j, j);
}
clientSqlSvr.batchUpdate(sqls, hints.inShard(i));
}
}
use of org.junit.AfterClass in project dal by ctripcorp.
the class PartialQueryTableDaoUnitTest method tearDownAfterClass.
@AfterClass
public static void tearDownAfterClass() throws Exception {
DalHints hints = new DalHints();
String[] sqls = null;
// For Sql Server
hints = new DalHints();
for (int i = 0; i < mod; i++) {
clientMySql.update(DROP_TABLE_SQL_MYSQL_TPL_ORIGINAL, new StatementParameters(), hints.inShard(i));
sqls = new String[tableMod];
for (int j = 0; j < tableMod; j++) {
sqls[j] = String.format(DROP_TABLE_SQL_MYSQL_TPL, j);
}
clientMySql.batchUpdate(sqls, hints.inShard(i));
}
}
use of org.junit.AfterClass in project xtext-xtend by eclipse.
the class BuildAffectionTest method tearDownProject.
@AfterClass
public static void tearDownProject() throws Exception {
IResourcesSetupUtil.cleanWorkspace();
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
final IWorkspaceDescription description = workspace.getDescription();
description.setAutoBuilding(BuildAffectionTest.wasAutoBuilding);
workspace.setDescription(description);
}
use of org.junit.AfterClass in project linuxtools by eclipse.
the class TestCreateSystemtapScript method finalCleanUp.
@AfterClass
public static void finalCleanUp() {
projectExplorer.setFocus();
SWTBotToolbarButton forwardButton = projectExplorer.toolbarPushButton("Forward");
projectExplorer.toolbarPushButton("Back to Workspace").click();
bot.waitUntil(Conditions.widgetIsEnabled(forwardButton));
projectExplorer.bot().tree().select(SYSTEMTAP_PROJECT_NAME).contextMenu("Delete").click();
SWTBotShell deleteShell = bot.shell("Delete Resources");
deleteShell.bot().button("OK").click();
bot.waitUntil(Conditions.shellCloses(deleteShell));
}
use of org.junit.AfterClass in project hive by apache.
the class TestJdbcDriver2 method tearDownAfterClass.
@AfterClass
public static void tearDownAfterClass() throws Exception {
Statement stmt = con.createStatement();
// drop test db and its tables and views
stmt.execute("set hive.support.concurrency = false");
stmt.execute("drop database if exists " + testDbName + " cascade");
stmt.close();
con.close();
}
Aggregations