From 30cfe7b4c55e50182523f11634bb6f4d044561d0 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Wed, 12 Jun 2019 17:48:33 -0700 Subject: [PATCH] Polish --- .../org/springframework/boot/test/system/OutputCapture.java | 4 +--- .../boot/testsupport/system/OutputCapture.java | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCapture.java b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCapture.java index 0b8982805d..91251d2228 100644 --- a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCapture.java +++ b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCapture.java @@ -126,9 +126,7 @@ class OutputCapture implements CapturedOutput { } private String get(Predicate filter) { - Assert.state(!this.systemCaptures.isEmpty(), - "No system captures found. Check that you have used @RegisterExtension " - + "or @ExtendWith and the fields are not private"); + Assert.state(!this.systemCaptures.isEmpty(), "No system captures found. Check that you have used @ExtendWith."); StringBuilder builder = new StringBuilder(); for (SystemCapture systemCapture : this.systemCaptures) { systemCapture.append(builder, filter); diff --git a/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/system/OutputCapture.java b/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/system/OutputCapture.java index b97402d50f..9e2b200a81 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/system/OutputCapture.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/system/OutputCapture.java @@ -113,9 +113,7 @@ class OutputCapture implements CapturedOutput { } private String get(Predicate filter) { - Assert.state(!this.systemCaptures.isEmpty(), - "No system captures found. Check that you have used @RegisterExtension " - + "or @ExtendWith and the fields are not private"); + Assert.state(!this.systemCaptures.isEmpty(), "No system captures found. Check that you have used @ExtendWith."); StringBuilder builder = new StringBuilder(); for (SystemCapture systemCapture : this.systemCaptures) { systemCapture.append(builder, filter);