Skip to content

Commit

Permalink
Test case for #5403.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 15, 2010
1 parent 0592ceb commit 23e033b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/ch/cyberduck/core/HostTest.java
Expand Up @@ -239,4 +239,16 @@ public void testRelativeDocumentRoot() {
assertEquals("http://127.0.0.1/~dkocher/file", path.toHttpURL());
}
}

public void testDefaultPathRoot() {
{
Host host = new Host("localhost");
host.setDefaultPath("/");
Path path = PathFactory.createPath(SessionFactory.createSession(host),
"/file", Path.DIRECTORY_TYPE);
assertEquals("http://localhost/file", path.toHttpURL());
host.setWebURL("http://127.0.0.1/~dkocher");
assertEquals("http://127.0.0.1/~dkocher/file", path.toHttpURL());
}
}
}

0 comments on commit 23e033b

Please sign in to comment.