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

TestCase4

public class TestCase4 extends TestCase

Fields Summary
Constructors Summary
public TestCase4(String name)

    super(name);
  
Methods Summary
public voidcombinedTest()

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

  
public static junit.framework.Testsuite()

    TestSuite suite = new TestSuite();
    suite.addTest(new TestCase4("combinedTest"));
    return suite;
  
public voidtearDown()

    LogManager.shutdown();