- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 7,194 for file2 (0.14 sec)
-
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
// 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()); assertTrue(file1.exists()); cos.close(); }
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Wed Nov 12 14:01:04 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/tests/persistent/HandleInfoTest.java
} testLeaseKey = new Smb2LeaseKey(); } @Test public void testHandleInfoCreation() { HandleInfo info = new HandleInfo("/test/file.txt", testGuid, testFileId, HandleType.DURABLE_V2, 120000, testLeaseKey); assertEquals("/test/file.txt", info.getPath()); assertEquals(testGuid, info.getCreateGuid()); assertArrayEquals(testFileId, info.getFileId());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 4.6K bytes - Viewed (0) -
docs/smb3-features/02-persistent-handles-design.md
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 31.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
// Test with normal path request = new Smb2CreateRequest(mockConfig, "test\\file.txt"); assertNotNull(request); assertEquals("\\test\\file.txt", request.getPath()); // Test with leading backslash request = new Smb2CreateRequest(mockConfig, "\\test\\file2.txt"); assertEquals("\\test\\file2.txt", request.getPath()); // Test with empty pathRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
assertEquals(1, notifications.get(0).getAction()); assertEquals("file1", notifications.get(0).getFileName()); assertEquals(2, notifications.get(1).getAction()); assertEquals("file2", notifications.get(1).getFileName()); assertEquals(3, notifications.get(2).getAction()); assertEquals("file3", notifications.get(2).getFileName()); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
} // Test basic properties assertTrue(file.exists(), "File should exist"); assertTrue(file.canRead(), "File should be readable"); assertTrue(file.canWrite(), "File should be writable"); assertEquals(content.length(), file.length(), "File length should match"); // Test timestamps long lastModified = file.lastModified();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
// Arrange: initial page with two entries, then one more entry, then no more files FileEntry fe1 = mock(FileEntry.class); lenient().when(fe1.getName()).thenReturn("file1"); lenient().when(fe1.getFileIndex()).thenReturn(1); FileEntry fe2 = mock(FileEntry.class); lenient().when(fe2.getName()).thenReturn("file2"); when(fe2.getFileIndex()).thenReturn(2);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/context/BaseContextTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 15.1K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
// Test adding children SmbFileAttributes attrs = createMockAttributes("file1.txt", 1000, false); entry.updateChild("file1.txt", attrs); assertTrue(entry.hasChild("file1.txt")); assertEquals(1, entry.getChildren().size()); // Test removal entry.removeChild("file1.txt"); assertFalse(entry.hasChild("file1.txt")); assertEquals(0, entry.getChildren().size()); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
cmd/xl-storage_test.go
t.Fatalf("Unable to create a file \"as-file\", %s", err) } if err = xlStorage.AppendFile(t.Context(), "exists", "as-file-parent/xl.meta", xlMeta); err != nil { t.Fatalf("Unable to create a file \"as-file-parent\", %s", err) } if err = xlStorage.MakeVol(t.Context(), "exists/as-file/"+fi.DataDir); err != nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 66K bytes - Viewed (0)