Skip to content

Commit 0679947

Browse files
committed
Make TestContextManager.getTestContext() public
This commit changes the visibility of the getTestContext() method in TestContextManager from 'protected' to 'public' in order to support test method injection in JUnit 5 and similar use cases. Issue: SPR-14011
1 parent 50bcd67 commit 0679947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-test/src/main/java/org/springframework/test/context/TestContextManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public TestContextManager(TestContextBootstrapper testContextBootstrapper) {
124124
/**
125125
* Get the {@link TestContext} managed by this {@code TestContextManager}.
126126
*/
127-
protected final TestContext getTestContext() {
127+
public final TestContext getTestContext() {
128128
return this.testContext;
129129
}
130130

0 commit comments

Comments
 (0)