View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven;
20  
21  import junit.framework.JUnit4TestAdapter;
22  import junit.framework.Test;
23  import org.apache.maven.surefire.SpecificTestClassFilterTest;
24  import org.apache.maven.surefire.api.booter.ForkingRunListenerTest;
25  import org.apache.maven.surefire.api.report.LegacyPojoStackTraceWriterTest;
26  import org.apache.maven.surefire.api.runorder.ThreadedExecutionSchedulerTest;
27  import org.apache.maven.surefire.api.stream.AbstractStreamDecoderTest;
28  import org.apache.maven.surefire.api.stream.AbstractStreamEncoderTest;
29  import org.apache.maven.surefire.api.suite.RunResultTest;
30  import org.apache.maven.surefire.api.testset.FundamentalFilterTest;
31  import org.apache.maven.surefire.api.testset.ResolvedTestTest;
32  import org.apache.maven.surefire.api.testset.TestListResolverTest;
33  import org.apache.maven.surefire.api.util.DefaultDirectoryScannerTest;
34  import org.apache.maven.surefire.api.util.ReflectionUtilsTest;
35  import org.apache.maven.surefire.api.util.RunOrderCalculatorTest;
36  import org.apache.maven.surefire.api.util.RunOrderTest;
37  import org.apache.maven.surefire.api.util.ScanResultTest;
38  import org.apache.maven.surefire.api.util.TestsToRunTest;
39  import org.apache.maven.surefire.api.util.internal.AsyncSocketTest;
40  import org.apache.maven.surefire.api.util.internal.ChannelsReaderTest;
41  import org.apache.maven.surefire.api.util.internal.ChannelsWriterTest;
42  import org.apache.maven.surefire.api.util.internal.ConcurrencyUtilsTest;
43  import org.apache.maven.surefire.api.util.internal.ImmutableMapTest;
44  import org.apache.maven.surefire.api.util.internal.ObjectUtilsTest;
45  import org.junit.runner.RunWith;
46  import org.junit.runners.Suite;
47  
48  /**
49   * Adapt the JUnit4 tests which use only annotations to the JUnit3 test suite.
50   *
51   * @author Tibor Digana (tibor17)
52   * @since 2.19
53   */
54  @Suite.SuiteClasses({
55      ThreadedExecutionSchedulerTest.class,
56      ForkingRunListenerTest.class,
57      LegacyPojoStackTraceWriterTest.class,
58      RunResultTest.class,
59      ResolvedTestTest.class,
60      TestListResolverTest.class,
61      ConcurrencyUtilsTest.class,
62      DefaultDirectoryScannerTest.class,
63      RunOrderCalculatorTest.class,
64      RunOrderTest.class,
65      ScanResultTest.class,
66      TestsToRunTest.class,
67      SpecificTestClassFilterTest.class,
68      FundamentalFilterTest.class,
69      ImmutableMapTest.class,
70      ReflectionUtilsTest.class,
71      ChannelsReaderTest.class,
72      ChannelsWriterTest.class,
73      AsyncSocketTest.class,
74      AbstractStreamEncoderTest.class,
75      AbstractStreamDecoderTest.class,
76      ObjectUtilsTest.class
77  })
78  @RunWith(Suite.class)
79  public class JUnit4SuiteTest {
80      public static Test suite() {
81          return new JUnit4TestAdapter(JUnit4SuiteTest.class);
82      }
83  }