@Test public void testRelativize$rootDirToAuthority$fragment() { String base = "http: String target = "http: String relative = "http: assertThat(URI.create(base).resolve(URI.create(relative)),equalTo(URI.create(target))); verifyConfigurableRelativizationScenario(base, target, relative, false, false); verifyConfigurableRelativizationScenario(base, target, relative, false, true); verifyConfigurableRelativizationScenario(base, target, relative, true, false); verifyConfigurableRelativizationScenario(base, target, relative, true, true); }
public static URI resolve(URI base, URI target) { Objects.requireNonNull(base,BASE_URI_CANNOT_BE_NULL); Objects.requireNonNull(target,TARGET_URI_CANNOT_BE_NULL); if(areOpaque(base, target)) { return target; } return relativeResolution(target, base).toURI(); }
URIUtils { public static URI resolve(URI base, URI target) { Objects.requireNonNull(base,BASE_URI_CANNOT_BE_NULL); Objects.requireNonNull(target,TARGET_URI_CANNOT_BE_NULL); if(areOpaque(base, target)) { return target; } return relativeResolution(target, base).toURI(); } }
URIUtils { public static URI resolve(URI base, URI target) { Objects.requireNonNull(base,BASE_URI_CANNOT_BE_NULL); Objects.requireNonNull(target,TARGET_URI_CANNOT_BE_NULL); if(areOpaque(base, target)) { return target; } return relativeResolution(target, base).toURI(); } private  URIUtils(); }
URIUtils { public static URI resolve(URI base, URI target) { Objects.requireNonNull(base,BASE_URI_CANNOT_BE_NULL); Objects.requireNonNull(target,TARGET_URI_CANNOT_BE_NULL); if(areOpaque(base, target)) { return target; } return relativeResolution(target, base).toURI(); } private  URIUtils(); static URL toURL(URI uri); static URI relativize(URI base, URI target); static URI resolve(URI base, URI target); }
URIUtils { public static URI resolve(URI base, URI target) { Objects.requireNonNull(base,BASE_URI_CANNOT_BE_NULL); Objects.requireNonNull(target,TARGET_URI_CANNOT_BE_NULL); if(areOpaque(base, target)) { return target; } return relativeResolution(target, base).toURI(); } private  URIUtils(); static URL toURL(URI uri); static URI relativize(URI base, URI target); static URI resolve(URI base, URI target);  }