Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for boundaries (0.07 sec)

  1. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                } catch (SMBProtocolDecodingException e) {
                    fail("Should handle large arrays: " + e.getMessage());
                }
            }
    
            @Test
            @DisplayName("Should handle buffer boundaries correctly")
            void testBufferBoundaries() {
                byte[] smallBuffer = new byte[10];
                int[] ciphers = { 1, 2 };
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            assertEquals(0, validator.safeMultiply(0, Integer.MAX_VALUE));
            assertEquals(1, validator.safeMultiply(1, 1));
    
            // Test exact buffer boundaries
            byte[] buffer = new byte[100];
            validator.validateBufferAccess(buffer, 0, 100); // Exactly full buffer
            validator.validateBufferAccess(buffer, 100, 0); // Zero length at end
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                assertEquals(originalContext.size(), decodedContext.size());
            }
    
            @Test
            @DisplayName("Should handle buffer boundaries correctly")
            void testBufferBoundaries() {
                // Arrange
                EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, new int[] { 1, 2 });
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/AllocInfoTest.java

                // When
                long capacity = allocInfo.getCapacity();
                long free = allocInfo.getFree();
    
                // Then - values should be preserved even at boundaries
                assertEquals(Long.MAX_VALUE, capacity);
                assertEquals(Long.MAX_VALUE, free);
    
                // Note: In real implementation, free > capacity might be invalid,
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/ACETest.java

            }
        }
    
        @Nested
        @DisplayName("Boundary Conditions and Edge Cases")
        class BoundaryConditionsTests {
    
            @Test
            @DisplayName("Should handle signed/unsigned integer boundaries")
            void shouldHandleSignedUnsignedBoundaries() {
                // Test that GENERIC_READ is the highest bit (0x80000000)
                assertEquals(0x80000000, ACE.GENERIC_READ, "GENERIC_READ should be 0x80000000");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
Back to top