Cyberduck Mountain Duck CLI

Changeset 41241


Ignore:
Timestamp:
Jun 6, 2017 10:38:49 AM (14 months ago)
Author:
dkocher
Message:

Fix test.

Location:
trunk/core/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/src/main/java/ch/cyberduck/core/shared/DefaultHomeFinderService.java

    r41238 r41241  
    2626import ch.cyberduck.core.exception.BackgroundException;
    2727import ch.cyberduck.core.features.Home;
    28 import ch.cyberduck.core.preferences.PreferencesFactory;
    2928import ch.cyberduck.core.serializer.PathDictionary;
    3029
     
    8584    protected String normalize(final String input, final boolean absolute) {
    8685        return PathNormalizer.normalize(StringUtils.replace(input,
    87                 PreferencesFactory.get().getProperty("local.delimiter"), String.valueOf(Path.DELIMITER)), absolute);
     86                String.valueOf("\\"), String.valueOf(Path.DELIMITER)), absolute);
    8887    }
    8988}
  • trunk/core/src/test/java/ch/cyberduck/core/shared/DefaultHomeFinderServiceTest.java

    r41240 r41241  
    3838
    3939    @Test
    40     public void testDefaultLocalPathWindows() throws Exception {
     40    public void testDefaultLocalPathDriveLetter() throws Exception {
    4141        assertEquals(new Path("/C:/Users/example/Documents/vault", EnumSet.of(Path.Type.directory)),
    4242                new DefaultHomeFinderService(null).find(new Path("/", EnumSet.of(Path.Type.directory)), "C:/Users/example/Documents/vault"));
     43    }
     44
     45    @Test
     46    public void testDefaultLocalPathDriveLetterBackwardSlashes() throws Exception {
    4347        assertEquals(new Path("/C:/Users/example/Documents/vault", EnumSet.of(Path.Type.directory)),
    4448                new DefaultHomeFinderService(null).find(new Path("/", EnumSet.of(Path.Type.directory)), "C:\\Users\\example\\Documents\\vault"));
Note: See TracChangeset for help on using the changeset viewer.
swiss made software