blob: b2287664792dba50942dd5cf3ee1837e81c4dff9 [file] [log] [blame]
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software
* License version 1.1, a copy of which has been included with this
* distribution in the LICENSE.txt file. */
package org.apache.log4j.defaultInit;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.framework.Test;
import java.util.Vector;
import org.apache.log4j.*;
import org.apache.log4j.performance.NullAppender;
public class TestCase1 extends TestCase {
public TestCase1(String name) {
super(name);
}
public void setUp() {
}
public void tearDown() {
LogManager.shutdown();
}
public void noneTest() {
Logger root = Logger.getRootLogger();
boolean rootIsConfigured = root.getAllAppenders().hasMoreElements();
assertTrue(!rootIsConfigured);
}
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTest(new TestCase1("noneTest"));
return suite;
}
}