View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.apache.log4j;
18  
19  import junit.framework.Test;
20  import junit.framework.TestSuite;
21  import org.apache.log4j.spi.LoggingEventTest;
22  
23  
24  /***
25   * Suite of log4j class level unit tests.
26   *
27   * @author Curt Arnold
28   */
29  public class CoreTestSuite {
30      /***
31       * Constructs test suite.
32       * @return test suite
33       */
34      public static Test suite() {
35          TestSuite s = new TestSuite();
36          s.addTestSuite(LoggingEventTest.class);
37          s.addTestSuite(org.apache.log4j.LevelTest.class);
38          s.addTestSuite(org.apache.log4j.PriorityTest.class);
39          s.addTestSuite(org.apache.log4j.CategoryTest.class);
40          s.addTestSuite(org.apache.log4j.FileAppenderTest.class);
41          s.addTestSuite(org.apache.log4j.LogManagerTest.class);
42          s.addTestSuite(org.apache.log4j.helpers.LogLogTest.class);
43          s.addTestSuite(org.apache.log4j.LayoutTest.class);
44          s.addTestSuite(org.apache.log4j.helpers.DateLayoutTest.class);
45          s.addTestSuite(org.apache.log4j.TTCCLayoutTest.class);
46          s.addTestSuite(org.apache.log4j.xml.XMLLayoutTest.class);
47          s.addTestSuite(org.apache.log4j.HTMLLayoutTest.class);
48          s.addTestSuite(org.apache.log4j.PatternLayoutTest.class);
49          s.addTestSuite(org.apache.log4j.spi.LoggingEventTest.class);
50          s.addTestSuite(org.apache.log4j.spi.ThrowableInformationTest.class);
51          s.addTestSuite(org.apache.log4j.spi.LocationInfoTest.class);
52          s.addTestSuite(org.apache.log4j.PropertyConfiguratorTest.class);
53          s.addTestSuite(org.apache.log4j.net.SMTPAppenderTest.class);
54          s.addTestSuite(org.apache.log4j.net.TelnetAppenderTest.class);
55          return s;
56      }
57  }