- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 132 for tmpdir (0.04 sec)
-
src/test/java/org/codelibs/curl/CurlTest.java
// ## Act ## final File tmpDir = Curl.tmpDir; // ## Assert ## assertNotNull(tmpDir); assertTrue(tmpDir.exists()); assertTrue(tmpDir.isDirectory()); assertTrue(tmpDir.canRead()); assertTrue(tmpDir.canWrite()); assertEquals(new File(System.getProperty("java.io.tmpdir")).getAbsolutePath(), tmpDir.getAbsolutePath()); } @Test
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 8.8K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/path/DefaultPathTranslatorTest.java
String aligned = new DefaultPathTranslator().alignToBaseDirectory("${basedir}", basedir); assertEquals(basedir.getAbsolutePath(), aligned); } @Test void testAlignToBasedirWhereBasedirExpressionIsTheValuePrefix() { File basedir = new File(System.getProperty("java.io.tmpdir"), "test").getAbsoluteFile();
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java
generator.setCommandDestroyTimeout(timeout); assertTrue(true); } public void test_setBaseDir() throws Exception { final File tempDir = new File(System.getProperty("java.io.tmpdir")); generator.setBaseDir(tempDir); assertTrue(true); } public void test_setCommandList() throws Exception { final List<String> commands = Collections.singletonList("test_command");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sun Aug 31 08:19:00 UTC 2025 - 16.4K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
assertNotNull(cache); } @Test public void testFileBasedCacheConstructor() throws IOException { tempFile = File.createTempFile("test", ".tmp", Curl.tmpDir); ContentCache cache = new ContentCache(tempFile); assertNotNull(cache); } @Test public void testMemoryBasedCacheGetInputStream() throws IOException {
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 10.3K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/Curl.java
* * <p>The temporary directory used by Curl is defined by the {@code tmpDir} field, which is initialized * to the system's temporary directory.</p> */ public class Curl { /** * The temporary directory used by Curl. It is initialized to the system's temporary directory. */ public static final File tmpDir = new File(System.getProperty("java.io.tmpdir")); /** * Private constructor to prevent instantiation.
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir); cos.write(new byte[] { 0, 1, 2, 3, 4 }); assertFalse(cos.done); assertTrue(cos.isInMemory()); cos.close(); assertFalse(cos.done); } @Test public void inFile() throws IOException { ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir);
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat May 10 01:44:04 UTC 2025 - 2K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentOutputStream.java
* * @param threshold the threshold in bytes for writing to memory before writing to a file * @param tmpDir the temporary directory to create the file in */ public ContentOutputStream(final int threshold, final File tmpDir) { super(threshold, PREFIX, SUFFIX, tmpDir); } @Override public File getFile() { done = true; return super.getFile(); }
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 3.4K bytes - Viewed (0) -
cmd/bitrot_test.go
package cmd import ( "io" "testing" ) func testBitrotReaderWriterAlgo(t *testing.T, bitrotAlgo BitrotAlgorithm) { tmpDir := t.TempDir() volume := "testvol" filePath := "testfile" disk, err := newLocalXLStorage(tmpDir) if err != nil { t.Fatal(err) } disk.MakeVol(t.Context(), volume) writer := newBitrotWriter(disk, "", volume, filePath, 35, bitrotAlgo, 10)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 2K bytes - Viewed (0) -
src/bufio/net_test.go
// across a unixpacket socket. This used to fail due to an unnecessary // empty Write call that was interpreted as an EOF. func TestCopyUnixpacket(t *testing.T) { tmpDir := t.TempDir() socket := filepath.Join(tmpDir, "unixsock") // Start a unixpacket server. addr := &net.UnixAddr{ Name: socket, Net: "unixpacket", } server, err := net.ListenUnix("unixpacket", addr) if err != nil {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Feb 07 19:37:07 UTC 2025 - 1.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/job/SuggestJob.java
File ownTmpDir = null; final String tmpDir = System.getProperty("java.io.tmpdir"); if (fessConfig.isUseOwnTmpDir() && StringUtil.isNotBlank(tmpDir)) { ownTmpDir = new File(tmpDir, "fessTmpDir_" + sessionId); if (ownTmpDir.mkdirs()) { cmdList.add("-Djava.io.tmpdir=" + ownTmpDir.getAbsolutePath()); } else { ownTmpDir = null;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 10.5K bytes - Viewed (0)