Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testDecodeException (0.14 sec)

  1. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

                assertEquals(24, result);
                verify(mockFileSystemInfo, times(1)).decode(buffer, 0, 100);
            }
    
            @Test
            @DisplayName("Should handle decode exception")
            void testDecodeException() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[100];
                when(mockFileSystemInfo.decode(any(byte[].class), anyInt(), anyInt()))
    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/smb2/ServerMessageBlock2Test.java

                    testMessage.decode(buffer, 0);
                });
            }
    
            @Test
            @DisplayName("Should handle decode exception")
            void testDecodeException() {
                byte[] buffer = createValidSyncMessage();
                testMessage.setThrowOnRead(true);
    
                assertThrows(SMBProtocolDecodingException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
Back to top