Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 50 for GetResource (0.42 sec)

  1. maven-core/src/test/resources/apiv4-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar

    Class loadClass(String) throws ClassNotFoundExcepti; public java.net.URL getResource(String); public java.util.Enumeration findResources(String) throws java.io.IOException; } org/codehaus/plexus/classworlds/strategy/Strategy.class package org.codehaus.plexus.classworlds.strategy; public abstract interface Strategy { public abstract Class loadClass(String) throws ClassNotFoundExcepti; public abstract java.net.URL getResource(String); public abstract java.io.InputStream getResourceAsStream(String);...
    Archive
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 41.5K bytes
    - Viewed (0)
  2. maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar

    Class loadClass(String) throws ClassNotFoundExcepti; public java.net.URL getResource(String); public java.util.Enumeration findResources(String) throws java.io.IOException; } org/codehaus/plexus/classworlds/strategy/Strategy.class package org.codehaus.plexus.classworlds.strategy; public abstract interface Strategy { public abstract Class loadClass(String) throws ClassNotFoundExcepti; public abstract java.net.URL getResource(String); public abstract java.io.InputStream getResourceAsStream(String);...
    Archive
    - Registered: Sun Mar 31 03:35:09 GMT 2024
    - Last Modified: Tue Oct 16 20:15:40 GMT 2007
    - 41.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/IoTestCase.java

          }
        }
        filesToDelete.clear();
      }
    
      private File getTestDir() throws IOException {
        if (testDir != null) {
          return testDir;
        }
    
        URL testFileUrl = IoTestCase.class.getResource("testdata/i18n.txt");
        if (testFileUrl == null) {
          throw new RuntimeException("unable to locate testdata directory");
        }
    
        if (testFileUrl.getProtocol().equals("file")) {
          try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  4. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/action/AnnotationGeneratorWorkAction.kt

             * Please keep this code in sync.
             */
            internal
            fun generateImportPackages(): List<String> {
                /*
                 * The class that getResource called upon must be from within a jar that contains the import txt file.
                 *
                 * Note: Even though 'jump to declaration' in IJ will show this to be the 'DefaultImportsReader' from
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Wed Jun 22 10:58:31 GMT 2022
    - 6.9K bytes
    - Viewed (0)
  5. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt

        }
      }
    
      /** Iterate through the hpack-test-case resources, only picking stories for the current draft.  */
      fun storiesForCurrentDraft(): Array<String> {
        val resource =
          HpackJsonUtil::class.java.getResource("/hpack-test-case")
            ?: return arrayOf()
    
        val testCaseDirectory = File(resource.toURI()).toOkioPath()
        val result = mutableListOf<String>()
        for (path in fileSystem.list(testCaseDirectory)) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/IoTestCase.java

          }
        }
        filesToDelete.clear();
      }
    
      private File getTestDir() throws IOException {
        if (testDir != null) {
          return testDir;
        }
    
        URL testFileUrl = IoTestCase.class.getResource("testdata/i18n.txt");
        if (testFileUrl == null) {
          throw new RuntimeException("unable to locate testdata directory");
        }
    
        if (testFileUrl.getProtocol().equals("file")) {
          try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  7. cmd/handler-utils_test.go

    		}
    		if err == nil && !reflect.DeepEqual(metadata, testCase.metadata) {
    			t.Fatalf("Test %d failed: Expected \"%#v\", got \"%#v\"", i+1, testCase.metadata, metadata)
    		}
    	}
    }
    
    // Test getResource()
    func TestGetResource(t *testing.T) {
    	testCases := []struct {
    		p                string
    		host             string
    		domains          []string
    		expectedResource string
    	}{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  8. maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

                throws FileNotFoundException, URISyntaxException {
            ClassLoader cloader = Thread.currentThread().getContextClassLoader();
    
            URL resourceUrl = cloader.getResource(resource);
    
            if (resourceUrl == null) {
                throw new FileNotFoundException("Unable to find: " + resource);
            }
    
            return new File(resourceUrl.toURI());
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/io/FileUtilTest.java

    import java.io.File;
    import java.net.URL;
    
    import org.codelibs.core.net.URLUtil;
    import org.junit.Test;
    
    /**
     * @author koichik
     *
     */
    public class FileUtilTest {
    
        URL url = ResourceUtil.getResource(getClass().getName().replace('.', '/') + ".txt");
    
        File inputFile = URLUtil.toFile(url);
    
        /**
         * @throws Exception
         */
        @Test
        public void testFileToFile() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSuperPomProvider.java

        }
    
        private Model readModel(String version, String v) {
            String resource = "/org/apache/maven/model/pom-" + v + ".xml";
            URL url = getClass().getResource(resource);
            if (url == null) {
                throw new IllegalStateException("The super POM " + resource + " was not found"
                        + ", please verify the integrity of your Maven installation");
            }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3K bytes
    - Viewed (0)
Back to top