- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for NewFile (0.32 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
@Test @DisplayName("Test constructor initializes fields correctly") public void testConstructor() throws Exception { // Given String oldFileName = "oldFile.txt"; String newFileName = "newFile.txt"; // When smbComRename = new SmbComRename(config, oldFileName, newFileName); // Then assertEquals(ServerMessageBlock.SMB_COM_RENAME, smbComRename.getCommand());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
// Setup mock behavior for FileNotifyInformation when(fileNotifyInfo1.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_ADDED); when(fileNotifyInfo1.getFileName()).thenReturn("newfile.txt"); when(fileNotifyInfo2.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_MODIFIED); when(fileNotifyInfo2.getFileName()).thenReturn("existingfile.txt");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
assertEquals(20, info.size()); } @Test @DisplayName("Test encode with replaceIfExists true") void testEncodeWithReplaceIfExistsTrue() { String fileName = "newfile.txt"; FileRenameInformation2 info = new FileRenameInformation2(fileName, true); byte[] buffer = new byte[100]; int bytesWritten = info.encode(buffer, 0); // Verify replaceIfExists flag
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
void testGetPath() { request = new Smb2CreateRequest(mockConfig, "share\\file.txt"); assertEquals("\\share\\file.txt", request.getPath()); request.setPath("newpath\\newfile.txt"); assertEquals("\\newpath\\newfile.txt", request.getPath()); } @Test @DisplayName("Test setFullUNCPath and related getters") void testFullUNCPath() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
assertEquals(2, verifyCacheEntry.getChildren().size()); // Step 8: Test change notifications // Simulate file addition directoryLeaseManager.handleDirectoryChange(directoryPath, "newfile.txt", DirectoryChangeNotifier.DirectoryChangeType.FILE_ADDED); // Cache should be invalidated assertFalse(cacheEntry.isComplete()); // Step 9: Test lease break // Re-populate cache
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java
trans2FindNext2 = new Trans2FindNext2(config, TEST_SID, TEST_RESUME_KEY, TEST_FILENAME, TEST_BATCH_COUNT, TEST_BATCH_SIZE); int newResumeKey = 0x5678; String newFilename = "newfile.txt"; trans2FindNext2.reset(newResumeKey, newFilename); // Verify by writing parameters and checking the buffer byte[] buffer = new byte[256];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
log.info("Basic connectivity test passed - can connect, list, and read files"); } @Test void testCreateNewFile() throws Exception { SmbFile file = new SmbFile(baseUrl + "shared/newfile.txt", context); assertFalse(file.exists(), "File should not exist initially"); file.createNewFile(); assertTrue(file.exists(), "File should exist after creation");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0)