Merge branch '2.0.x' into 2.1.x
Closes gh-17078
This commit is contained in:
@@ -81,21 +81,18 @@ public class SampleIntegrationParentApplicationTests {
|
||||
}
|
||||
}
|
||||
}
|
||||
fail("Timed out awaiting output containing '" + requiredContents
|
||||
+ "'. Output was '" + output + "'");
|
||||
fail("Timed out awaiting output containing '" + requiredContents + "'. Output was '" + output + "'");
|
||||
}
|
||||
|
||||
private Resource[] findResources() throws IOException {
|
||||
return ResourcePatternUtils
|
||||
.getResourcePatternResolver(new DefaultResourceLoader())
|
||||
return ResourcePatternUtils.getResourcePatternResolver(new DefaultResourceLoader())
|
||||
.getResources("file:target/output/*.txt");
|
||||
}
|
||||
|
||||
private String readResources(Resource[] resources) throws IOException {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
for (Resource resource : resources) {
|
||||
builder.append(
|
||||
new String(StreamUtils.copyToByteArray(resource.getInputStream())));
|
||||
builder.append(new String(StreamUtils.copyToByteArray(resource.getInputStream())));
|
||||
}
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user