Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testGetAction (0.1 sec)

  1. src/test/java/jcifs/FileNotifyInformationTest.java

            }
        }
    
        @Nested
        @DisplayName("Interface Methods Tests")
        class InterfaceMethodsTests {
    
            @Test
            @DisplayName("Test getAction method with mock")
            void testGetAction() {
                // Setup mock behavior
                when(mockFileNotifyInfo.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_ADDED);
    
                // Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

            assertEquals(expectedBytes, bytesRead);
        }
    
        @Test
        @DisplayName("Test getAction returns correct value")
        void testGetAction() throws SMBProtocolDecodingException {
            int expectedAction = FileNotifyInformation.FILE_ACTION_RENAMED_NEW_NAME;
            byte[] buffer = createValidNotificationBuffer("renamed.txt", expectedAction);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
Back to top