From 067994712df49b50b955e93944245a770b3962ad Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 2 Mar 2016 20:19:25 +0100 Subject: [PATCH] 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 --- .../org/springframework/test/context/TestContextManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-test/src/main/java/org/springframework/test/context/TestContextManager.java b/spring-test/src/main/java/org/springframework/test/context/TestContextManager.java index 6a4a3463dd..d56123af0d 100644 --- a/spring-test/src/main/java/org/springframework/test/context/TestContextManager.java +++ b/spring-test/src/main/java/org/springframework/test/context/TestContextManager.java @@ -124,7 +124,7 @@ public class TestContextManager { /** * Get the {@link TestContext} managed by this {@code TestContextManager}. */ - protected final TestContext getTestContext() { + public final TestContext getTestContext() { return this.testContext; }