Deprecate JUnit 4 OutputCaptureRule

Closes gh-47256
This commit is contained in:
Phillip Webb 2025-09-17 16:40:32 -07:00
parent fc68b001d8
commit 6642bf7beb
2 changed files with 3 additions and 0 deletions

View File

@ -50,7 +50,9 @@ import static org.hamcrest.Matchers.allOf;
* @author Phillip Webb
* @author Andy Wilkinson
* @since 2.2.0
* @deprecated since 4.0.0 in favor of JUnit 5 and {@link OutputCaptureExtension}
*/
@Deprecated
public class OutputCaptureRule implements TestRule, CapturedOutput {
private final OutputCapture delegate = new OutputCapture();

View File

@ -26,6 +26,7 @@ import static org.assertj.core.api.Assertions.assertThat;
*
* @author Roland Weisleder
*/
@SuppressWarnings("deprecation")
public class OutputCaptureRuleTests {
@Rule