mirror of https://github.com/apache/nifi.git
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:
parent
133838a93f
commit
c757c4d6ea
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue