JAVA-12359 Trying to fix failing unix platform test
This commit is contained in:
parent
2181c452d3
commit
8d7014cfc0
|
@ -7,7 +7,7 @@ import java.util.Arrays;
|
|||
|
||||
public class StringFilenameValidationUtils {
|
||||
|
||||
public static final Character[] INVALID_WINDOWS_SPECIFIC_CHARS = {'"', '*', ':', '<', '>', '?', '\\', '|', '/'};
|
||||
public static final Character[] INVALID_WINDOWS_SPECIFIC_CHARS = {'"', '*', ':', '<', '>', '?', '\\', '|'};
|
||||
public static final Character[] INVALID_UNIX_SPECIFIC_CHARS = {'\000'};
|
||||
|
||||
public static final String REGEX_PATTERN = "^[A-za-z0-9.]{1,255}$";
|
||||
|
|
|
@ -70,7 +70,7 @@ public class StringFilenameValidationUnitTest {
|
|||
|
||||
@ParameterizedTest
|
||||
@EnabledOnOs({OS.LINUX, OS.MAC})
|
||||
@MethodSource("filenamesWithInvalidUnixChars")
|
||||
@MethodSource("filenamesWithInvalidWindowsChars")
|
||||
public void givenFilenameStringWithInvalidWindowsCharAndIsUnix_whenValidateUsingIO_thenReturnTrue(String filename) throws IOException {
|
||||
assertThat(validateStringFilenameUsingIO(filename)).isTrue();
|
||||
assertThat(validateStringFilenameUsingNIO2(filename)).isTrue();
|
||||
|
|
Loading…
Reference in New Issue