Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testEncodeNullDestinationArray (0.09 sec)

  1. src/test/java/jcifs/util/ByteEncodableTest.java

            assertThrows(NullPointerException.class, () -> {
                encodable.encode(dest, 0);
            }, "Should throw NullPointerException if source array is null");
        }
    
        @Test
        void testEncodeNullDestinationArray() {
            // Test with a null destination array
            byte[] data = { 0x01 };
            ByteEncodable encodable = new ByteEncodable(data, 0, 1);
    
            // Expect NullPointerException from System.arraycopy
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
Back to top