Skip to content

Commit 30cfe7b

Browse files
committed
Polish
1 parent 54c72cf commit 30cfe7b

File tree

2 files changed

+2
-6
lines changed
  • spring-boot-project
    • spring-boot-test/src/main/java/org/springframework/boot/test/system
    • spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/system

2 files changed

+2
-6
lines changed

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCapture.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ void reset() {
126126
}
127127

128128
private String get(Predicate<Type> filter) {
129-
Assert.state(!this.systemCaptures.isEmpty(),
130-
"No system captures found. Check that you have used @RegisterExtension "
131-
+ "or @ExtendWith and the fields are not private");
129+
Assert.state(!this.systemCaptures.isEmpty(), "No system captures found. Check that you have used @ExtendWith.");
132130
StringBuilder builder = new StringBuilder();
133131
for (SystemCapture systemCapture : this.systemCaptures) {
134132
systemCapture.append(builder, filter);

spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/system/OutputCapture.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ void reset() {
113113
}
114114

115115
private String get(Predicate<Type> filter) {
116-
Assert.state(!this.systemCaptures.isEmpty(),
117-
"No system captures found. Check that you have used @RegisterExtension "
118-
+ "or @ExtendWith and the fields are not private");
116+
Assert.state(!this.systemCaptures.isEmpty(), "No system captures found. Check that you have used @ExtendWith.");
119117
StringBuilder builder = new StringBuilder();
120118
for (SystemCapture systemCapture : this.systemCaptures) {
121119
systemCapture.append(builder, filter);

0 commit comments

Comments
 (0)