Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testSetAction (1.16 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java

        }
    
        @Test
        void testSetDeviceState() {
            response.deviceState = 0x8000;
            assertEquals(0x8000, response.deviceState);
        }
    
        @Test
        void testSetAction() {
            response.action = 2;
            assertEquals(2, response.action);
        }
    
        @Test
        void testSetServerFid() {
            response.serverFid = 456;
            assertEquals(456, response.serverFid);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. 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)
  3. 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