super(name);
}
@Override
public final void runBare() throws Throwable {
final TestNotifier testNotifier = MycilaTesting.from(getClass()).configure(this).createNotifier(this);
ShutdownHook.get().add(new Closeable() {
public void close() throws Exception {
testNotifier.shutdown();
}
});
testNotifier.prepare();
try {
setUp();
testNotifier.fireBeforeTest(getTestMethod());
TestExecution testExecution = (TestExecution) Mycila.currentExecution();
if (!testExecution.mustSkip()) {
try {
LOGGER.debug("Calling test method {0}.{1}", testExecution.method().getDeclaringClass().getName(), testExecution.method().getName());
super.runTest();
} catch (Throwable t) {
testExecution.setThrowable(t);
}
}
testNotifier.fireAfterTest();
tearDown();
if (testExecution.hasFailed()) {
throw testExecution.throwable().fillInStackTrace();
}
} finally {
testNotifier.fireAfterClass();
}
}