Commit 30cfe7b4 authored by Madhura Bhave's avatar Madhura Bhave

Polish

parent 54c72cf3
...@@ -126,9 +126,7 @@ class OutputCapture implements CapturedOutput { ...@@ -126,9 +126,7 @@ class OutputCapture implements CapturedOutput {
} }
private String get(Predicate<Type> filter) { private String get(Predicate<Type> filter) {
Assert.state(!this.systemCaptures.isEmpty(), Assert.state(!this.systemCaptures.isEmpty(), "No system captures found. Check that you have used @ExtendWith.");
"No system captures found. Check that you have used @RegisterExtension "
+ "or @ExtendWith and the fields are not private");
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
for (SystemCapture systemCapture : this.systemCaptures) { for (SystemCapture systemCapture : this.systemCaptures) {
systemCapture.append(builder, filter); systemCapture.append(builder, filter);
......
...@@ -113,9 +113,7 @@ class OutputCapture implements CapturedOutput { ...@@ -113,9 +113,7 @@ class OutputCapture implements CapturedOutput {
} }
private String get(Predicate<Type> filter) { private String get(Predicate<Type> filter) {
Assert.state(!this.systemCaptures.isEmpty(), Assert.state(!this.systemCaptures.isEmpty(), "No system captures found. Check that you have used @ExtendWith.");
"No system captures found. Check that you have used @RegisterExtension "
+ "or @ExtendWith and the fields are not private");
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
for (SystemCapture systemCapture : this.systemCaptures) { for (SystemCapture systemCapture : this.systemCaptures) {
systemCapture.append(builder, filter); systemCapture.append(builder, filter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment