NIFI-1385: Resolved test for missing file which was failing on Windows due to differing error message.

Reviewed by Tony Kurc (tkurc@apache.org)
This commit is contained in:
Andy LoPresto 2016-01-12 19:16:25 -05:00 committed by trkurc
parent 133838a93f
commit c757c4d6ea
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ public class TestEncryptContent {
// Assert
Assert.assertEquals(1, results.size());
ValidationResult vr = (ValidationResult) results.toArray()[0];
String expectedResult = " (No such file or directory)";
String expectedResult = "java.io.FileNotFoundException";
String message = "'" + vr.toString() + "' contains '" + expectedResult + "'";
Assert.assertTrue(message, vr.toString().contains(expectedResult));
}