Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testEncodeNullBuffer (1.25 sec)

  1. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

        }
    
        /**
         * Ensure encode throws NPE when passed a null buffer.
         */
        @Test
        @DisplayName("Encode with null buffer throws NullPointerException")
        public void testEncodeNullBuffer() throws NdrException {
            NdrHyper hyper = new NdrHyper(5L);
            assertThrows(NullPointerException.class, () -> hyper.encode(null));
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

                verify(mockNdrBuffer).enc_ndr_referent(entry.name.buffer, 1);
            }
    
            @Test
            @DisplayName("Should encode entry with null buffer")
            void testEncodeNullBuffer() throws NdrException {
                // Given: SAM entry with null buffer
                samr.SamrSamEntry entry = new samr.SamrSamEntry();
                entry.idx = 1;
                entry.name = new rpc.unicode_string();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java

                verify(mockNdrBuffer).enc_ndr_referent(entry.name.buffer, 1);
            }
    
            @Test
            @DisplayName("Should encode entry with null buffer")
            void testEncodeNullBuffer() throws NdrException {
                // Given: SAM entry with null buffer
                samr.SamrSamEntry entry = new samr.SamrSamEntry();
                entry.idx = 1;
                entry.name = new rpc.unicode_string();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.6K bytes
    - Viewed (0)
Back to top