JAVA-12359 Changes required in windows os test due to fix of unix os failing test

This commit is contained in:
anuragkumawat 2022-06-18 11:56:32 +05:30
parent 8d7014cfc0
commit ca3fe06a56
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ public class StringFilenameValidationUnitTest {
.extracting(Throwable::getMessage, InstanceOfAssertFactories.STRING)
.containsAnyOf("The system cannot find the path specifie",
"The filename, directory name, or volume label syntax is incorrect");
if (!filename.contains("/") && !filename.contains("\\")) {
if (!filename.contains("\\")) {
assertThatThrownBy(() -> validateStringFilenameUsingNIO2(filename))
.isInstanceOf(InvalidPathException.class).hasMessageContaining("Illegal char");
}