Methods Summary |
---|
void | common()
int i = 0;
logger.debug("Message " + ++i);
logger.info ("Message " + ++i);
logger.warn ("Message " + ++i);
logger.error("Message " + ++i);
logger.log(XLevel.TRACE, "Message " + ++i);
|
public void | setUp()
root = Logger.getRootLogger();
logger = Logger.getLogger(CustomLevelTestCase.class);
|
public static junit.framework.Test | suite()
TestSuite suite = new TestSuite();
suite.addTest(new CustomLevelTestCase("test1"));
suite.addTest(new CustomLevelTestCase("test2"));
suite.addTest(new CustomLevelTestCase("test3"));
suite.addTest(new CustomLevelTestCase("test4"));
return suite;
|
public void | tearDown()
root.getLoggerRepository().resetConfiguration();
|
public void | test1()
DOMConfigurator.configure("input/xml/customLevel1.xml");
common();
assertTrue(Compare.compare(TEMP, "witness/customLevel.1"));
|
public void | test2()
DOMConfigurator.configure("input/xml/customLevel2.xml");
common();
assertTrue(Compare.compare(TEMP, "witness/customLevel.2"));
|
public void | test3()
DOMConfigurator.configure("input/xml/customLevel3.xml");
common();
assertTrue(Compare.compare(TEMP, "witness/customLevel.3"));
|
public void | test4()
DOMConfigurator.configure("input/xml/customLevel4.xml");
common();
assertTrue(Compare.compare(TEMP, "witness/customLevel.4"));
|