@Test public void testExpandPathWithDirectory() throws Exception { final Path expanded = new TildePathExpander(new Path("/home/jenkins", EnumSet.of(Path.Type.directory))) .expand(new Path("/~/f/s", EnumSet.of(Path.Type.file))); assertEquals(new Path("/home/jenkins/f/s", EnumSet.of(Path.Type.file)), expanded); assertEquals(new Path("/home/jenkins/f", EnumSet.of(Path.Type.directory)), expanded.getParent()); }
public Path expand(final Path remote) { return this.expand(remote, PREFIX); }
TildePathExpander { public Path expand(final Path remote) { return this.expand(remote, PREFIX); } }
TildePathExpander { public Path expand(final Path remote) { return this.expand(remote, PREFIX); } TildePathExpander(final Path workdir); }
TildePathExpander { public Path expand(final Path remote) { return this.expand(remote, PREFIX); } TildePathExpander(final Path workdir); Path expand(final Path remote); }
TildePathExpander { public Path expand(final Path remote) { return this.expand(remote, PREFIX); } TildePathExpander(final Path workdir); Path expand(final Path remote); static final String PREFIX; }