Skip to content

Commit 5e61e33

Browse files
committed
Introduce SpringTestContextFrameworkTestSuite as a convenience in IDE
1 parent 1890e04 commit 5e61e33

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright 2002-2019 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.test.context;
18+
19+
import org.junit.platform.runner.JUnitPlatform;
20+
import org.junit.platform.suite.api.ExcludeTags;
21+
import org.junit.platform.suite.api.IncludeClassNamePatterns;
22+
import org.junit.platform.suite.api.SelectPackages;
23+
import org.junit.platform.suite.api.UseTechnicalNames;
24+
import org.junit.runner.RunWith;
25+
26+
/**
27+
* JUnit Platform based test suite for tests that involve the Spring TestContext
28+
* Framework.
29+
*
30+
* <p><strong>This suite is only intended to be used manually within an IDE.</strong>
31+
*
32+
* <h3>Logging Configuration</h3>
33+
*
34+
* <p>In order for our log4j2 configuration to be used in an IDE, you must
35+
* set the following system property before running any tests &mdash; for
36+
* example, in <em>Run Configurations</em> in Eclipse.
37+
*
38+
* <pre style="code">
39+
* -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
40+
* </pre>
41+
*
42+
* @author Sam Brannen
43+
* @since 5.2
44+
*/
45+
@RunWith(JUnitPlatform.class)
46+
@SelectPackages("org.springframework.test.context")
47+
@IncludeClassNamePatterns(".*Tests?$")
48+
@ExcludeTags("failing-test-case")
49+
@UseTechnicalNames
50+
public class SpringTestContextFrameworkTestSuite {
51+
}

0 commit comments

Comments
 (0)