Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for FileNotifyInformation (0.15 sec)

  1. src/test/java/jcifs/internal/NotifyResponseTest.java

            FileNotifyInformation addedFile = mock(FileNotifyInformation.class);
            when(addedFile.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_ADDED);
            when(addedFile.getFileName()).thenReturn("added.txt");
    
            FileNotifyInformation removedFile = mock(FileNotifyInformation.class);
            when(removedFile.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_REMOVED);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

        @ParameterizedTest
        @ValueSource(ints = { FileNotifyInformation.FILE_ACTION_ADDED, FileNotifyInformation.FILE_ACTION_REMOVED,
                FileNotifyInformation.FILE_ACTION_MODIFIED, FileNotifyInformation.FILE_ACTION_RENAMED_OLD_NAME,
                FileNotifyInformation.FILE_ACTION_RENAMED_NEW_NAME, FileNotifyInformation.FILE_ACTION_ADDED_STREAM,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

        @ValueSource(ints = { FileNotifyInformation.FILE_ACTION_ADDED, FileNotifyInformation.FILE_ACTION_REMOVED,
                FileNotifyInformation.FILE_ACTION_MODIFIED, FileNotifyInformation.FILE_ACTION_RENAMED_OLD_NAME,
                FileNotifyInformation.FILE_ACTION_RENAMED_NEW_NAME, FileNotifyInformation.FILE_ACTION_ADDED_STREAM,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/FileNotifyInformationTest.java

                        FileNotifyInformation.FILE_NOTIFY_CHANGE_LAST_WRITE, FileNotifyInformation.FILE_NOTIFY_CHANGE_LAST_ACCESS,
                        FileNotifyInformation.FILE_NOTIFY_CHANGE_CREATION, FileNotifyInformation.FILE_NOTIFY_CHANGE_EA,
                        FileNotifyInformation.FILE_NOTIFY_CHANGE_SECURITY, FileNotifyInformation.FILE_NOTIFY_CHANGE_STREAM_NAME,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/SmbWatchHandleTest.java

    class SmbWatchHandleTest {
    
        @Mock
        private SmbWatchHandle watchHandle;
    
        @Mock
        private FileNotifyInformation fileNotifyInfo1;
    
        @Mock
        private FileNotifyInformation fileNotifyInfo2;
    
        @Mock
        private FileNotifyInformation fileNotifyInfo3;
    
        private List<FileNotifyInformation> mockNotifications;
    
        @BeforeEach
        void setUp() {
            mockNotifications = new ArrayList<>();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

        @Test
        @DisplayName("watch() clears notify list on error 0x10C and returns it")
        void watch_clearsList_onError10C() throws Exception {
            List<FileNotifyInformation> info = spy(new ArrayList<FileNotifyInformation>());
            info.add(mock(FileNotifyInformation.class));
            NotifyResponse resp = mock(NotifyResponse.class);
            when(resp.isReceived()).thenReturn(true);
            when(resp.getErrorCode()).thenReturn(0x10C);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            int bytesRead = response.readBytesWireFormat(buffer, offset);
    
            // Then
            assertTrue(bytesRead > 0);
            List<FileNotifyInformation> notifications = response.getNotifyInformation();
            assertEquals(1, notifications.size());
    
            FileNotifyInformation info = notifications.get(0);
            assertEquals(1, info.getAction());
            assertEquals("test.txt", info.getFileName());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/SmbResource.java

         * Creates a directory watch
         *
         * The server will notify the client when there are changes to the directories contents
         *
         * @param filter
         *            see constants in {@link FileNotifyInformation}
         * @param recursive
         *            whether to also watch subdirectories
         * @return watch context, needs to be closed when finished
         * @throws CIFSException if an error occurs accessing the resource
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
Back to top