Closes gh-5925
This commit is contained in:
Johnny Lim
2016-05-12 13:55:13 +09:00
committed by Stephane Nicoll
parent afec397edd
commit 7c34dd87c1
3 changed files with 6 additions and 7 deletions

View File

@@ -45,8 +45,7 @@ class ContentContainingCondition extends Condition<File> {
Reader reader = null;
try {
reader = new FileReader(value);
String content = FileCopyUtils.copyToString(new FileReader(value));
System.out.println(content);
String content = FileCopyUtils.copyToString(reader);
return content.contains(this.toContain);
}
catch (IOException ex) {