Home
last modified time | relevance | path

Searched refs:toURI (Results 1 – 25 of 31) sorted by relevance

12

/external/mockito/src/test/java/org/mockito/internal/configuration/plugins/
DPluginFinderTest.java40 assertNull(finder.findPluginClass(asList(f.toURI().toURL()))); in no_valid_impl()
51 assertEquals("foo.Foo", finder.findPluginClass(asList(f.toURI().toURL()))); in single_implementation()
62 assertEquals(null, finder.findPluginClass(asList(f.toURI().toURL()))); in single_implementation_disabled()
74 assertEquals("Bar", finder.findPluginClass(asList(f1.toURI().toURL(), f2.toURI().toURL()))); in multiple_implementations_only_one_enabled()
86 assertEquals("X", finder.findPluginClass(asList(f1.toURI().toURL(), f2.toURI().toURL()))); in multiple_implementations_only_one_useful()
98 assertEquals(null, finder.findPluginClass(asList(f1.toURI().toURL(), f2.toURI().toURL()))); in multiple_empty_implementations()
106 finder.findPluginClass(asList(new File("xxx").toURI().toURL())); in problems_loading_impl()
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
DOkApacheClientTest.java50 HttpGet request = new HttpGet(server.getUrl("/").toURI()); in success()
60 HttpGet request = new HttpGet(server.getUrl("/").toURI()); in redirect()
69 HttpGet request = new HttpGet(server.getUrl("/").toURI()); in sessionExpired()
78 HttpGet request1 = new HttpGet(server.getUrl("/").toURI()); in headers()
84 HttpGet request2 = new HttpGet(server.getUrl("/").toURI()); in headers()
95 final HttpPost post = new HttpPost(server.getUrl("/").toURI()); in postByteEntity()
108 final HttpPost post = new HttpPost(server.getUrl("/").toURI()); in postInputStreamEntity()
119 final HttpPost post = new HttpPost(server.getUrl("/").toURI()); in postEmptyEntity()
128 final HttpPut put = new HttpPut(server.getUrl("/").toURI()); in putEmptyEntity()
140 httpPost.setURI(server.getUrl("/").toURI()); in postOverrideContentType()
[all …]
/external/guava/guava-tests/test/com/google/common/reflect/
DClassPathTest.java180 ImmutableMap.of(url1.toURI(), classloader, url2.toURI(), classloader), in testClassPathEntries_URLClassLoader_noParent()
190 assertEquals(ImmutableMap.of(url1.toURI(), parent, url2.toURI(), child), classPathEntries); in testClassPathEntries_URLClassLoader_withParent()
191 assertThat(classPathEntries.keySet()).has().exactly(url1.toURI(), url2.toURI()).inOrder(); in testClassPathEntries_URLClassLoader_withParent()
198 assertEquals(ImmutableMap.of(url.toURI(), parent), ClassPath.getClassPathEntries(child)); in testClassPathEntries_duplicateUri_parentWins()
209 ImmutableMap.of(url.toURI(), parent), in testClassPathEntries_notURLClassLoader_withParent()
219 ImmutableMap.of(url1.toURI(), grandParent, url2.toURI(), parent), in testClassPathEntries_notURLClassLoader_withParentAndGrandParent()
228 ImmutableMap.of(url.toURI(), grandParent), in testClassPathEntries_notURLClassLoader_withGrandParent()
237 scanner.scan(jarFile.toURI(), ClassPathTest.class.getClassLoader()); in testScan_classPathCycle()
303 .has().exactly(new File("base/with/relative/dir").toURI()).inOrder(); in testGetClassPathFromManifest_relativeDirectory()
311 .has().exactly(new File("base/with/relative.jar").toURI()).inOrder(); in testGetClassPathFromManifest_relativeJar()
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/data/
DHttpUrlFetcher.java50 if (lastUrl != null && url.toURI().equals(lastUrl.toURI())) { in loadDataWithRedirects()
/external/apache-http/src/org/apache/http/
DHttpHost.java161 public String toURI() { in toURI() method in HttpHost
191 return toURI(); in toString()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/
DAbstractResponseCache.java41 return serverUrl.toURI(); in toUri()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DJarFinder.java88 uri = entry.toURI(); in getClassPathEntries()
204 : new File(jarFile.getParentFile(), path.replace('/', File.separatorChar)).toURI(); in getClassPathEntry()
/external/apache-harmony/luni/src/test/impl/common/org/apache/harmony/luni/tests/java/net/
DURLClassLoaderImplTest.java61 final URI a = res.toURI(); in test_Constructor$Ljava_net_URLLjava_lang_ClassLoaderLjava_net_URLStreamHandlerFactory()
/external/caliper/caliper/src/main/java/com/google/caliper/platform/jvm/
DEffectiveClassPath.java63 files.add(new File(url.toURI())); in getClassPathFiles()
/external/okhttp/okhttp-hpacktests/src/test/java/com/squareup/okhttp/internal/spdy/hpackjson/
DHpackJsonUtil.java47 File testCaseDirectory = new File(HpackJsonUtil.class.getResource("/hpack-test-case").toURI()); in storiesForCurrentDraft()
/external/guava/guava-tests/test/com/google/common/io/
DSourceSinkFactories.java410 return Resources.asByteSource(getFile().toURI().toURL());
419 return Resources.asCharSource(getFile().toURI().toURL(), Charsets.UTF_8);
DIoTestCase.java78 File testFile = new File(testFileUrl.toURI()); in getTestDir()
DResourcesTest.java155 URL baseUrl = tempFile.getParentFile().toURI().toURL(); in testGetResource_contextClassLoader()
/external/javassist/src/main/javassist/
DClassPoolTail.java60 return f.getCanonicalFile().toURI().toURL(); in find()
130 .toURI().toURL().toString(); in JarClassPath()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue318/
DContextClassLoaderTest.java88 yamlCL = new URLClassLoader(new URL[] { runtimeClassesDir.toURI().toURL() }, null); in before()
/external/antlr/antlr-3.4/gunit-maven-plugin/src/main/java/org/antlr/mojo/antlr3/
DGUnitExecuteMojo.java244 classPathUrls.add( new File( path ).toURI().toURL() ); in determineProjectCompileScopeClassLoader()
256 return artifact.getFile().toURI().toURL(); in resolveLocalURL()
/external/guava/guava/src/com/google/common/reflect/
DClassPath.java291 uri = entry.toURI(); in getClassPathEntries()
435 return new File(jarFile.getParentFile(), path.replace('/', File.separatorChar)).toURI(); in getClassPathEntry()
/external/smali/baksmali/src/test/java/org/jf/baksmali/
DAnalysisTest.java133 return new File(resUrl.toURI()); in findResource()
/external/conscrypt/benchmark-graphs/src/main/java/org/conscrypt/graphgen/
DMain.java93 URI uri = Main.class.getResource(JSON_TEMPLATES).toURI(); in listAllResources()
/external/apache-harmony/support/src/test/java/tests/support/resource/
DSupport_Resources.java157 return new File(url.toURI()).getAbsolutePath(); in getAbsoluteResourcePath()
/external/apache-http/src/org/apache/http/impl/conn/
DProxySelectorRoutePlanner.java203 targetURI = new URI(target.toURI()); in determineProxy()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/provider/
DScriptProvider.java153 { index, script.getName(), intent.toURI(), icon.resourceName, icon.packageName, in queryLiveFolder()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DURLClassLoaderTest.java385 dirUrl = dir.toURI().toURL(); in testFindResource_H3461()
396 assertEquals("URL was not correctly encoded", f2.toURI().toURL(), in testFindResource_H3461()
/external/mockito/src/test/java/org/mockitoutil/
DClassLoaders.java443 return new File(path).getAbsoluteFile().toURI().toURL(); in pathToUrl()
467 URI uri = roots.nextElement().toURI(); in listOwnedClasses()
/external/guice/core/test/com/googlecode/guice/
DBytecodeGenTest.java115 addURL(new File(element).toURI().toURL()); in TestVisibilityClassLoader()

12