JAVA-12359 Changes required in windows os test due to fix of unix os failing test
This commit is contained in:
parent
8d7014cfc0
commit
ca3fe06a56
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue