FileDocCategorySizeDatePackage
TestCase2.javaAPI DocApache log4j 1.2.151674Sat Aug 25 00:09:34 BST 2007org.apache.log4j.defaultInit

TestCase2

public class TestCase2 extends TestCase

Fields Summary
Constructors Summary
public TestCase2(String name)

    super(name);
  
Methods Summary
public voidsetUp()

  
public static junit.framework.Testsuite()

    TestSuite suite = new TestSuite();
    suite.addTest(new TestCase2("xmlTest"));
    return suite;
  
public voidtearDown()

    LogManager.shutdown();
  
public voidxmlTest()

    Logger root = Logger.getRootLogger();
    boolean rootIsConfigured = root.getAllAppenders().hasMoreElements();
    assertTrue(rootIsConfigured);
    Enumeration e = root.getAllAppenders();
    Appender appender = (Appender) e.nextElement();
    assertEquals(appender.getName(), "D1");