Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 128 for SMBProtocolDecodingException (0.6 sec)

  1. src/main/java/jcifs/internal/SMBProtocolDecodingException.java

     *
     * @author mbechler
     */
    public class SMBProtocolDecodingException extends CIFSException {
    
        /**
         *
         */
        private static final long serialVersionUID = 4862398838709265475L;
    
        /**
         * Constructs a new SMBProtocolDecodingException with no detail message.
         */
        public SMBProtocolDecodingException() {
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java

            default -> throw new SMBProtocolDecodingException("Unknwon information type " + infoType);
            };
        }
    
        /**
         * @param infoClass
         * @return
         * @throws SMBProtocolDecodingException
         */
        private static Decodable createFilesystemInformation(final byte infoClass) throws SMBProtocolDecodingException {
            return switch (infoClass) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

            void testInvalidStructureSizes(int structureSize) {
                byte[] buffer = new byte[64];
                SMBUtil.writeInt2(structureSize, buffer, 0);
    
                SMBProtocolDecodingException exception =
                        assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, 0));
    
                assertEquals("Expected structureSize = 17", exception.getMessage());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            byte[] buffer = new byte[2000];
            int dataLen = outputBuffer.length + 100; // Exceeds outputBuffer size
    
            SMBProtocolDecodingException exception =
                    assertThrows(SMBProtocolDecodingException.class, () -> response.readDataWireFormat(buffer, 0, dataLen));
    
            assertEquals("Payload exceeds buffer size", exception.getMessage());
        }
    
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.Configuration;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Test class for EncryptionNegotiateContext
     */
    @ExtendWith(MockitoExtension.class)
    @DisplayName("EncryptionNegotiateContext Tests")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

            int offset = 0;
    
            // Write invalid structure size
            SMBUtil.writeInt2(structureSize, buffer, offset);
    
            // When & Then
            SMBProtocolDecodingException exception =
                    assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, offset));
            assertEquals("Structure size is not 16", exception.getMessage());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Test class for FileStandardInfo
     */
    class FileStandardInfoTest {
    
        private FileStandardInfo fileStandardInfo;
    
        @BeforeEach
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            // Assert throwing/catching behavior with assertThrows
            SMBProtocolDecodingException thrown = assertThrows(SMBProtocolDecodingException.class, () -> {
                throw new SMBProtocolDecodingException();
            }, "Should be throwable via assertThrows");
            assertTrue(thrown instanceof CIFSException, "Thrown instance should also be CIFSException subtype");
        }
    
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

    import java.nio.charset.StandardCharsets;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Test class for FileRenameInformation2
     */
    @DisplayName("FileRenameInformation2 Tests")
    class FileRenameInformation2Test {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

            // Set structure size to 4 (invalid, should be 2)
            SMBUtil.writeInt2(4, buffer, bufferIndex);
    
            SMBProtocolDecodingException exception =
                    assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, bufferIndex),
                            "Should throw SMBProtocolDecodingException for invalid structure size");
    
            assertEquals("Expected structureSize = 2", exception.getMessage());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top