diff --git a/core-java-modules/core-java-string-operations-3/src/test/java/com/baeldung/stringfilenamevalidaiton/StringFilenameValidationUnitTest.java b/core-java-modules/core-java-string-operations-3/src/test/java/com/baeldung/stringfilenamevalidaiton/StringFilenameValidationUnitTest.java index 04f6b83183..b86aba3873 100644 --- a/core-java-modules/core-java-string-operations-3/src/test/java/com/baeldung/stringfilenamevalidaiton/StringFilenameValidationUnitTest.java +++ b/core-java-modules/core-java-string-operations-3/src/test/java/com/baeldung/stringfilenamevalidaiton/StringFilenameValidationUnitTest.java @@ -70,7 +70,7 @@ public class StringFilenameValidationUnitTest { @ParameterizedTest @EnabledOnOs({OS.LINUX, OS.MAC}) - @MethodSource("filenamesWithInvalidWindowsChars") + @MethodSource("filenamesWithInvalidUnixChars") public void givenFilenameStringWithInvalidWindowsCharAndIsUnix_whenValidateUsingIO_thenReturnTrue(String filename) throws IOException { assertThat(validateStringFilenameUsingIO(filename)).isTrue(); assertThat(validateStringFilenameUsingNIO2(filename)).isTrue();