- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for getFilename (0.58 sec)
-
src/test/java/jcifs/internal/NotifyResponseTest.java
// Verify all filenames are preserved assertEquals("added.txt", result.get(0).getFileName()); assertEquals("removed.txt", result.get(1).getFileName()); assertEquals("modified.txt", result.get(2).getFileName()); assertEquals("oldname.txt", result.get(3).getFileName()); assertEquals("newname.txt", result.get(4).getFileName()); } @Test @DisplayName("Test NotifyResponse with stream actions")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/FileNotifyInformationTest.java
}) @DisplayName("Test getFileName with various file names") void testGetFileNameWithVariousValues(String fileName) { when(mockFileNotifyInfo.getFileName()).thenReturn(fileName); assertEquals(fileName, mockFileNotifyInfo.getFileName()); } @Test @DisplayName("Test getFileName with null value") void testGetFileNameWithNull() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
assertArrayEquals(testFileId, response.getFileId()); } @Test @DisplayName("getFileName should return the file name passed in constructor") void testGetFileName() { assertEquals(testFileName, response.getFileName()); } } @Nested @DisplayName("writeBytesWireFormat Tests") class WriteBytesWireFormatTests {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
when(fileNotifyInfo1.getFileName()).thenReturn("newfile.txt"); when(fileNotifyInfo2.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_MODIFIED); when(fileNotifyInfo2.getFileName()).thenReturn("existingfile.txt"); when(fileNotifyInfo3.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_REMOVED); when(fileNotifyInfo3.getFileName()).thenReturn("deletedfile.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/smb1/trans/nt/FileNotifyInformationImplTest.java
void testDefaultConstructor() { assertNotNull(notifyInfo); assertEquals(0, notifyInfo.getAction()); assertNull(notifyInfo.getFileName()); assertEquals(0, notifyInfo.getNextEntryOffset()); } @Test @DisplayName("Test constructor with buffer decodes correctly") void testConstructorWithBuffer() throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
fileBothDirectoryInfo.decode(buffer, 0, buffer.length); // Verify assertEquals(expectedFileIndex, fileBothDirectoryInfo.getFileIndex()); } @Test @DisplayName("Test getFilename returns correct filename") void testGetFilename() throws SMBProtocolDecodingException { // Prepare test data String expectedFilename = "longfilename.docx";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java
// Verify first notification assertEquals("file1.txt", notifications.get(0).getFileName()); assertEquals(FileNotifyInformation.FILE_ACTION_ADDED, notifications.get(0).getAction()); // Verify second notification assertEquals("file2.txt", notifications.get(1).getFileName()); assertEquals(FileNotifyInformation.FILE_ACTION_REMOVED, notifications.get(1).getAction());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
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()); } @DisplayName("Should throw exception for invalid structure size")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImpl.java
*/ public FileNotifyInformationImpl() { } @Override public int getAction() { return this.action; } @Override public String getFileName() { return this.fileName; } /** * Gets the offset to the next entry. * * @return the next entry offset in bytes */ public int getNextEntryOffset() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Response.java
*/ if (lastNameBufferIndex >= bufferIndex && (e.getNextEntryOffset() == 0 || lastNameBufferIndex < bufferIndex + e.getNextEntryOffset())) { this.lastName = e.getFilename(); this.resumeKey = e.getFileIndex(); } bufferIndex += e.getNextEntryOffset(); } setResults(results); /*
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.2K bytes - Viewed (0)