mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-09 19:09:03 +00:00
Deprecate JUnit 4 OutputCaptureRule
Closes gh-47256
This commit is contained in:
+2
@@ -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();
|
||||
|
||||
+1
@@ -26,6 +26,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Roland Weisleder
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class OutputCaptureRuleTests {
|
||||
|
||||
@Rule
|
||||
|
||||
Reference in New Issue
Block a user