Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testConstructorOverflow (0.96 sec)

  1. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                // Then: Value should be 255
                assertEquals(255, ndrShort.value);
            }
    
            @Test
            @DisplayName("Should handle overflow correctly")
            void testConstructorOverflow() {
                // Given/When: Creating NdrShort with value > 255
                NdrShort ndrShort = new NdrShort(300);
    
                // Then: Value should be masked (300 & 0xFF = 44)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top