Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4dc966b

Browse files
committed
Include @Inject TCK tests in the build again
Commit 979508a removed the JUnit 4 dependency from all modules except spring-test. Unfortunately, the @Inject TCK tests (SpringAtInjectTckTests) are still based on JUnit 3. Thus, that commit accidentally excluded those tests from the build. This commit includes SpringAtInjectTckTests in the build again by introducing a test runtime dependency on the JUnit Vintage TestEngine in spring-context. See spring-projectsgh-23451
1 parent 2861fc6 commit 4dc966b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spring-context/spring-context.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ dependencies {
3939
testRuntime("javax.xml.bind:jaxb-api")
4040
testRuntime("org.glassfish:javax.el")
4141
testRuntime("org.javamoney:moneta")
42+
testRuntime("org.junit.vintage:junit-vintage-engine") // for @Inject TCK
4243
}

src/checkstyle/checkstyle-suppressions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<suppress files="RootBeanDefinition" checks="EqualsHashCode" />
1818

1919
<!-- spring-context -->
20-
<suppress files="SpringAtInjectTckTests" checks="IllegalImportCheck" />
20+
<suppress files="SpringAtInjectTckTests" checks="IllegalImportCheck" id="bannedJUnit3Imports" />
2121

2222
<!-- spring-core -->
2323
<suppress files="[\\/]src[\\/]main[\\/]java[\\/]org[\\/]springframework[\\/]asm[\\/]" checks=".*" />

0 commit comments

Comments
 (0)