- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 56 for getResources (0.1 sec)
-
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
assertEquals( "a.b", new ClassInfo(FILE, "a/b/Foo.class", getClass().getClassLoader()).getPackageName()); } // Test that ResourceInfo.urls() returns identical content to ClassLoader.getResources() @AndroidIncompatible public void testGetClassPathUrls() throws Exception { if (isWindows()) { return; // TODO: b/136041958 - We need to account for drive letters in the path. }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 22:09:38 UTC 2024 - 25K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java
Model out = interpolator.interpolateModel(model, (Path) null, createModelBuildingRequest(context), collector); assertCollectorState(0, 0, 0, collector); List<Resource> outResources = out.getBuild().getResources(); Iterator<Resource> resIt = outResources.iterator(); assertEquals(model.getBuild().getSourceDirectory(), resIt.next().getDirectory()); } @Test
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 22.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/TraversalUtil.java
return EMPTY_ARRAY; } final String baseName = toDirectoryName(rootPackage); final List<Traverser> list = newArrayList(); for (final Iterator<URL> it = ClassLoaderUtil.getResources(baseName); it.hasNext();) { final URL url = it.next(); final Traverser resourcesType = getTraverser(url, rootPackage, baseName); if (resourcesType != null) {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 19.5K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/ClassPath.java
/** * Returns the url identifying the resource. * * <p>See {@link ClassLoader#getResource} * * @throws NoSuchElementException if the resource cannot be loaded through the class loader, * despite physically existing in the class path. */ public final URL url() { URL url = loader.getResource(resourceName); if (url == null) { throw new NoSuchElementException(resourceName);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jan 05 17:43:40 UTC 2022 - 24.9K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java
p); validate20EffectivePluginDependencies(problems, p, request); } validate20RawResources(problems, build.getResources(), "build.resources.resource.", request); validate20RawResources( problems, build.getTestResources(), "build.testResources.testResource.", request); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 77.1K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/TransferListenerAdapter.java
Long transferred; synchronized (transfers) { transferred = transfers.remove(transferEvent.getResource()); } if (transferred != null) { event.setTransferredBytes(transferred); } synchronized (artifacts) { artifacts.remove(transferEvent.getResource()); } listener.transferCompleted(event); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ResourcesTest.java
} public void testToString() throws IOException { URL resource = getClass().getResource("testdata/i18n.txt"); assertEquals(I18N, Resources.toString(resource, UTF_8)); assertThat(Resources.toString(resource, US_ASCII)).isNotEqualTo(I18N); } public void testToByteArray() throws IOException { URL resource = getClass().getResource("testdata/i18n.txt");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ResourcesTest.java
} public void testToString() throws IOException { URL resource = getClass().getResource("testdata/i18n.txt"); assertEquals(I18N, Resources.toString(resource, UTF_8)); assertThat(Resources.toString(resource, US_ASCII)).isNotEqualTo(I18N); } public void testToByteArray() throws IOException { URL resource = getClass().getResource("testdata/i18n.txt");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/ResourceTraversalTest.java
*/ @Test public void testForEachJarFile() throws Exception { final String classFilePath = TestCase.class.getName().replace('.', '/') + ".class"; final URL classURL = ResourceUtil.getResource(classFilePath); final JarURLConnection con = (JarURLConnection) classURL.openConnection(); ResourceTraversalUtil.forEach(con.getJarFile(), (ResourceHandler) (path, is) -> { try {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 6K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java
return new FileModelSource(new File(getClass() .getResource("/poms/depmgmt/import.xml") .getFile())); case "test:other:pom": return new FileModelSource(new File(getClass() .getResource("/poms/depmgmt/other-import.xml") .getFile()));
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 16.9K bytes - Viewed (0)