@Test @DisabledOnOs(OS.WINDOWS) public void testPathsResolution_whenResolvedPathIsRelative_inUnix() throws URISyntaxException { final Map<String, String> parameters = Collections.emptyMap(); final ResolvedImportPath resolvedPath = createResolved("relative/path", parameters).get(); final URI uri = resolvedPath.resolveInRespectTo(new File("/some/location").toURI()); assertThat(uri).isEqualTo(new File("/some/relative/path/").toURI()); }
public URI resolveInRespectTo(final URI locationUri) { return locationUri.resolve(uri); }
ResolvedImportPath { public URI resolveInRespectTo(final URI locationUri) { return locationUri.resolve(uri); } }
ResolvedImportPath { public URI resolveInRespectTo(final URI locationUri) { return locationUri.resolve(uri); } ResolvedImportPath(final URI uri); }
ResolvedImportPath { public URI resolveInRespectTo(final URI locationUri) { return locationUri.resolve(uri); } ResolvedImportPath(final URI uri); static Optional<ResolvedImportPath> from(final ImportPath importPath); static Optional<ResolvedImportPath> from(final ImportPath importPath, final Map<String, String> parameters); URI getUri(); URI resolveInRespectTo(final URI locationUri); @Override boolean equals(final Object obj); @Override int hashCode(); }
ResolvedImportPath { public URI resolveInRespectTo(final URI locationUri) { return locationUri.resolve(uri); } ResolvedImportPath(final URI uri); static Optional<ResolvedImportPath> from(final ImportPath importPath); static Optional<ResolvedImportPath> from(final ImportPath importPath, final Map<String, String> parameters); URI getUri(); URI resolveInRespectTo(final URI locationUri); @Override boolean equals(final Object obj); @Override int hashCode();  }