- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for getFiler (0.05 sec)
-
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
} @Test public void testMultipleGetFile() throws IOException { // Calling getFile() multiple times should return the same file ContentOutputStream cos = new ContentOutputStream(5, Curl.tmpDir); cos.write(new byte[] { 0, 1, 2, 3, 4, 5 }); File file1 = cos.getFile(); File file2 = cos.getFile(); assertEquals(file1.getAbsolutePath(), file2.getAbsolutePath());Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Wed Nov 12 14:01:04 UTC 2025 - 9.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
assertTrue(ByteSource.wrap(data).slice(0, chunk1).contentEquals(source)); } File file = out.getFile(); assertThat(file).isNull(); // Write data to go over the threshold if (chunk2 > 0) { write(out, data, chunk1, chunk2, singleByte); file = out.getFile(); assertEquals(dataSize, file.length()); assertTrue(file.exists());
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Oct 30 16:30:29 UTC 2025 - 6.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
assertTrue(ByteSource.wrap(data).slice(0, chunk1).contentEquals(source)); } File file = out.getFile(); assertThat(file).isNull(); // Write data to go over the threshold if (chunk2 > 0) { write(out, data, chunk1, chunk2, singleByte); file = out.getFile(); assertEquals(dataSize, file.length()); assertTrue(file.exists());
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Oct 30 16:30:29 UTC 2025 - 6.7K bytes - Viewed (0) -
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/RepositorySystemTest.java
assertTrue(result.isResolved(), "Expected " + result + ".isResolved() to return true"); Artifact artifact = result.getArtifact(); assertNotNull(artifact.getFile()); assertEquals(filename, artifact.getFile().getName()); } @Test void testResolveArtifacts() throws Exception { ArtifactRequest req1 = new ArtifactRequest();
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 9.5K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListenerTest.java
Artifact localRepositoryArtifact = mock(Artifact.class); when(localRepositoryArtifact.getFile()).thenReturn(new File(baseDir, "some/path/within")); Artifact nonLocalReposioryArtifact = mock(Artifact.class); when(nonLocalReposioryArtifact.getFile()).thenReturn(new File("something/completely/different"));Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 4.1K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentOutputStream.java
*/ public ContentOutputStream(final int threshold, final File tmpDir) { super(threshold, PREFIX, SUFFIX, tmpDir); } @Override public File getFile() { done = true; return super.getFile(); } /** * Closes the stream and deletes the temporary file if it was not retrieved. * If an error occurs during file deletion, it is logged but not thrown to avoidRegistered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 3.9K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java
artifact.getProperty(ArtifactProperties.TYPE, artifact.getExtension()), nullify(artifact.getClassifier()), handler); result.setFile(artifact.getFile()); result.setResolved(artifact.getFile() != null); List<String> trail = new ArrayList<>(1); trail.add(result.getId()); result.setDependencyTrail(trail); return result; }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Sep 04 18:33:16 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/tests/persistent/HandleInfoTest.java
HandleInfo info = new HandleInfo("/test/file.txt", testGuid, testFileId, HandleType.DURABLE_V2, 120000, null); assertNull(info.getFile()); Object mockFile = new Object(); info.setFile(mockFile); assertEquals(mockFile, info.getFile()); } @Test public void testToString() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 4.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorBuilder.java
} catch (final Exception e) { throw new ExtractException("Failed to extract data.", e); } finally { if (dfos != null && !dfos.isInMemory()) { final File file = dfos.getFile(); try { Files.delete(file.toPath()); } catch (final IOException e) { logger.warn("Failed to delete {}.", file.getAbsolutePath(), e);
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 10.1K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
private static final String TOUCHFILE_NAME = "resolver-status.properties"; @Override public boolean isUpdateRequired(Artifact artifact, ArtifactRepository repository) { File file = artifact.getFile(); ArtifactRepositoryPolicy policy = artifact.isSnapshot() ? repository.getSnapshots() : repository.getReleases(); if (!policy.isEnabled()) { if (getLogger().isDebugEnabled()) {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Dec 16 13:41:14 UTC 2025 - 9.4K bytes - Viewed (0)