Skip to content

Commit 6642bf7

Browse files
committed
Deprecate JUnit 4 OutputCaptureRule
Closes gh-47256
1 parent fc68b00 commit 6642bf7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

core/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCaptureRule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
* @author Phillip Webb
5151
* @author Andy Wilkinson
5252
* @since 2.2.0
53+
* @deprecated since 4.0.0 in favor of JUnit 5 and {@link OutputCaptureExtension}
5354
*/
55+
@Deprecated
5456
public class OutputCaptureRule implements TestRule, CapturedOutput {
5557

5658
private final OutputCapture delegate = new OutputCapture();

core/spring-boot-test/src/test/java/org/springframework/boot/test/system/OutputCaptureRuleTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
*
2727
* @author Roland Weisleder
2828
*/
29+
@SuppressWarnings("deprecation")
2930
public class OutputCaptureRuleTests {
3031

3132
@Rule

0 commit comments

Comments
 (0)