    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   */
    28  public class CoreTestSuite {
    29      /**
    30       * Constructs test suite.
    31       * @return test suite
    32       */
    33      public static Test suite() {
    34          TestSuite s = new TestSuite();
    35          s.addTestSuite(LoggingEventTest.class);
    36          s.addTestSuite(org.apache.log4j.LevelTest.class);
    37          s.addTestSuite(org.apache.log4j.PriorityTest.class);
    38          s.addTestSuite(org.apache.log4j.CategoryTest.class);
    39          s.addTestSuite(org.apache.log4j.FileAppenderTest.class);
    40          s.addTestSuite(org.apache.log4j.LogManagerTest.class);
    41          s.addTestSuite(org.apache.log4j.helpers.LogLogTest.class);
    42          s.addTestSuite(org.apache.log4j.LayoutTest.class);
    43          s.addTestSuite(org.apache.log4j.helpers.DateLayoutTest.class);
    44          s.addTestSuite(org.apache.log4j.TTCCLayoutTest.class);
    45          s.addTestSuite(org.apache.log4j.xml.XMLLayoutTest.class);
    46          s.addTestSuite(org.apache.log4j.HTMLLayoutTest.class);
    47          s.addTestSuite(org.apache.log4j.PatternLayoutTest.class);
    48          s.addTestSuite(org.apache.log4j.spi.LoggingEventTest.class);
    49          s.addTestSuite(org.apache.log4j.spi.ThrowableInformationTest.class);
    50          s.addTestSuite(org.apache.log4j.spi.LocationInfoTest.class);
    51          s.addTestSuite(org.apache.log4j.PropertyConfiguratorTest.class);
    52          s.addTestSuite(org.apache.log4j.net.SMTPAppenderTest.class);
    53          s.addTestSuite(org.apache.log4j.net.TelnetAppenderTest.class);
    54          s.addTestSuite(org.apache.log4j.DefaultThrowableRendererTest.class);
    55          s.addTestSuite(org.apache.log4j.EnhancedThrowableRendererTest.class);
    56          s.addTestSuite(org.apache.log4j.TestLogXF.class);
    57          s.addTestSuite(org.apache.log4j.TestLogMF.class);
    58          s.addTestSuite(org.apache.log4j.TestLogSF.class);
    59          s.addTestSuite(org.apache.log4j.pattern.CachedDateFormatTest.class);
    60          s.addTestSuite(org.apache.log4j.pattern.FormattingInfoTest.class);
    61          s.addTestSuite(org.apache.log4j.pattern.NameAbbreviatorTest.class);
    62          s.addTestSuite(org.apache.log4j.pattern.PatternParserTest.class);
    63          return s;
    64      }
    65  }