use of org.junit.AfterClass in project logging-log4j2 by apache.
the class XmlConfigurationPropsTest method cleanupClass.
@AfterClass
public static void cleanupClass() {
System.clearProperty(ConfigurationFactory.CONFIGURATION_FILE_PROPERTY);
final LoggerContext ctx = LoggerContext.getContext();
ctx.reconfigure();
StatusLogger.getLogger().reset();
}
use of org.junit.AfterClass in project jena by apache.
the class TestMemDriverWithLogging method afterClassResetLogging.
@AfterClass
public static void afterClassResetLogging() {
// Unfortunately, this code "knows" how log4j was set up in testing
// Thsi is fragile.
URL configURL = Loader.getResource("log4j.properties");
new PropertyConfigurator().doConfigure(configURL, LogManager.getLoggerRepository());
}
use of org.junit.AfterClass in project wildfly by wildfly.
the class TimerEJBRuntimeNameTestCase method tearDown.
@AfterClass
public static void tearDown() throws Exception {
ModelNode result = controllerClient.execute(composite(undeploy(DEPLOYMENT_NAME), remove(DEPLOYMENT_NAME)));
// just to blow up
Assert.assertTrue("Failed to undeploy: " + result, Operations.isSuccessfulOutcome(result));
}
use of org.junit.AfterClass in project wildfly by wildfly.
the class StatefulEJBRuntimeNameTestCase method tearDown.
@AfterClass
public static void tearDown() throws Exception {
ModelNode result = controllerClient.execute(composite(undeploy(DEPLOYMENT_NAME), remove(DEPLOYMENT_NAME)));
// just to blow up
Assert.assertTrue("Failed to undeploy: " + result, Operations.isSuccessfulOutcome(result));
}
use of org.junit.AfterClass in project wildfly by wildfly.
the class StatelessEJBRuntimeNameTestCase method tearDown.
@AfterClass
public static void tearDown() throws Exception {
ModelNode result = controllerClient.execute(composite(undeploy(DEPLOYMENT_NAME), remove(DEPLOYMENT_NAME)));
// just to blow up
Assert.assertTrue("Failed to undeploy: " + result, Operations.isSuccessfulOutcome(result));
}
Aggregations