use of org.junit.AfterClass in project translationstudio8 by heartsome.
the class ImportToDBTest method end.
@AfterClass
public static void end() {
// 删除用完的数据库
HsRow dbRow = shImportTMXData.new HsRow(1);
MemoryDBManagement db = new MemoryDBManagement(dbRow);
db.deleteDB(TsUIConstants.Entry.MENU, true);
}
use of org.junit.AfterClass in project hadoop by apache.
the class TestHttpsFileSystem method tearDown.
@AfterClass
public static void tearDown() throws Exception {
if (cluster != null) {
cluster.shutdown();
}
FileUtil.fullyDelete(new File(BASEDIR));
KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
}
use of org.junit.AfterClass in project querydsl by querydsl.
the class AbstractJDOTest method doCleanUp.
@AfterClass
public static void doCleanUp() {
// Clean out the database
PersistenceManager pm = pmf.getPersistenceManager();
Transaction tx = pm.currentTransaction();
try {
tx.begin();
pm.newQuery(Store.class).deletePersistentAll();
pm.newQuery(Book.class).deletePersistentAll();
pm.newQuery(Product.class).deletePersistentAll();
tx.commit();
} finally {
if (tx.isActive()) {
tx.rollback();
}
pm.close();
}
}
use of org.junit.AfterClass in project randomizedtesting by randomizedtesting.
the class WithNestedTestClass method clearNested.
@AfterClass
public static final void clearNested() throws Exception {
zombieToken = null;
runningNested = false;
ApplyAtPlace.runnable = null;
ApplyAtPlace.place = null;
System.setOut(sysout);
System.setErr(syserr);
for (Handler h : logger.getHandlers()) logger.removeHandler(h);
for (Handler h : handlers) logger.addHandler(h);
for (Thread t : zombies) {
t.interrupt();
}
for (Thread t : zombies) {
t.join();
}
}
use of org.junit.AfterClass in project DirectMemory by raffaeleguidi.
the class BaseTests method setup.
@BeforeClass
@AfterClass
public static void setup() {
rnd = new Random();
// logger.info("off-heap allocated: " + Ram.inMb(mem.capacity()));
// logger.info("off-heap used: " + Ram.inMb(mem.used()));
logger.info("test - size: " + test.size());
logger.info("test - errors: " + errors);
logger.info("heap - max: " + Ram.inMb(Runtime.getRuntime().maxMemory()));
logger.info("heap - allocated: " + Ram.inMb(Runtime.getRuntime().totalMemory()));
logger.info("heap - free : " + Ram.inMb(Runtime.getRuntime().freeMemory()));
logger.info("************************************************");
}
Aggregations