File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/io Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434import org .apache .commons .io .test .TestUtils ;
3535import org .apache .commons .lang3 .SystemUtils ;
3636import org .junit .jupiter .api .BeforeEach ;
37+ import org .junit .jupiter .api .Disabled ;
3738import org .junit .jupiter .api .Test ;
3839import org .junit .jupiter .api .io .TempDir ;
3940
@@ -360,6 +361,20 @@ void testGetFullPathNoEndSeparator_IO_248() {
360361 assertEquals ("\\ abc" , FilenameUtils .getFullPathNoEndSeparator ("\\ abc\\ xyz" ));
361362 }
362363
364+ /**
365+ * Test for https://issues.apache.org/jira/browse/IO-771
366+ */
367+ @ Test
368+ @ Disabled
369+ void testGetFullPathNoEndSeparator_IO_771 () {
370+ // IO-771
371+ // On macOS while in the target folder in jshell:
372+ // new java.io.File("X:\\path\\subfolder").getAbsolutePath()
373+ // ==> "/Users/garygregory/git/commons/commons-lang/target/X:\\path\\subfolder"
374+ assertEquals ("/Users/garygregory/git/commons/commons-lang/target/X:\\ \\ path" ,
375+ FilenameUtils .getFullPathNoEndSeparator ("/Users/garygregory/git/commons/commons-lang/target/X:\\ \\ path\\ \\ subfolder" ));
376+ }
377+
363378 @ Test
364379 void testGetName () {
365380 assertNull (FilenameUtils .getName (null ));
You can’t perform that action at this time.
0 commit comments