- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 56 for getResources (0.1 sec)
-
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)) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.3K bytes - Viewed (0) -
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 {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 31 12:36:13 UTC 2024 - 5.6K bytes - Viewed (0) -
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 }{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 6.1K bytes - Viewed (0) -
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 {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.6K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/StringWagon.java
@Override public void fillInputData(InputData inputData) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException { Resource resource = inputData.getResource(); String content = expectedContent.get(resource.getName()); if (content != null) { resource.setContentLength(content.length());
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3K bytes - Viewed (0) -
cmd/signature-v2.go
if err != nil { return ErrMalformedExpires } // Check if the presigned URL has expired. if expiresInt < UTCNow().Unix() { return ErrExpiredPresignRequest } encodedResource, err = getResource(encodedResource, r.Host, globalDomainNames) if err != nil { return ErrInvalidRequest } expectedSignature := preSignatureV2(cred, r.Method, encodedResource, strings.Join(filteredQueries, "&"), r.Header, expires)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 12.2K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/superpom/DefaultSuperPomProvider.java
+ this.getClass().getPackage().getImplementationVersion() + ":super-pom"; InputSource inputSource = new InputSource( modelId, getClass().getResource(resource).toExternalForm()); options.put(ModelProcessor.INPUT_SOURCE, new org.apache.maven.model.InputSource(inputSource)); return modelProcessor.read(is, options);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
} return clazz; } return super.loadClass(name, resolve); } } public void testGetFinalizerUrl() { assertNotNull(getClass().getResource("internal/Finalizer.class")); } public void testFinalizeClassHasNoNestedClasses() throws Exception { // Ensure that the Finalizer class has no nested classes.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 4.8K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java
String myResourcePath = ExpressionDocumenter.class.getName().replace('.', '/') + ".class"; URL myResource = ExpressionDocumenter.class.getClassLoader().getResource(myResourcePath); assert myResource != null : "The resource is this class itself loaded by its own classloader and must exist"; String myClasspathEntry = myResource.getPath();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/PropertiesUtilTest.java
import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.rules.TemporaryFolder; /** * @author wyukawa * */ public class PropertiesUtilTest { URL url = ResourceUtil.getResource(getClass().getName().replace('.', '/') + ".txt"); File inputFile = URLUtil.toFile(url); /** * */ @Rule public TemporaryFolder tempFolder = new TemporaryFolder(); /**
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 9.6K bytes - Viewed (0)