Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 60 for 6553600 (0.04 sec)

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

            assertThrows(IllegalArgumentException.class, () -> InputValidator.validatePort(-1));
            assertThrows(IllegalArgumentException.class, () -> InputValidator.validatePort(65536));
        }
    
        @Test
        @DisplayName("Test timeout validation")
        void testTimeoutValidation() {
            assertDoesNotThrow(() -> InputValidator.validateTimeout(1000L, "test"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

            assertEquals(result1, result2);
        }
    
        @Test
        @DisplayName("Test large buffer handling")
        void testLargeBufferHandling() {
            // Arrange
            byte[] largeBuffer = new byte[65536]; // 64KB buffer
    
            // Act & Assert
            assertEquals(0, response.writeSetupWireFormat(largeBuffer, 0));
            assertEquals(0, response.writeParametersWireFormat(largeBuffer, 32768));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle large buffer decoding")
            void testLargeBufferDecode() throws SMBProtocolDecodingException {
                byte[] largeBuffer = new byte[65536];
                Arrays.fill(largeBuffer, (byte) 0xFF);
    
                TestCreateContextResponse response = new TestCreateContextResponse("LARGE_BUFFER_TEST".getBytes(StandardCharsets.UTF_8));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

            }
    
            @Test
            @DisplayName("Should handle large arrays efficiently")
            void testWriteBytesWireFormatWithLargeArray() {
                // Given
                byte[] dst = new byte[65536]; // 64KB array
    
                // When
                int result = response.writeBytesWireFormat(dst, 32768);
    
                // Then
                assertEquals(0, result);
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/InputValidator.java

        public static final int MAX_USERNAME_LENGTH = 256;
        public static final int MAX_DOMAIN_LENGTH = 255;
        public static final int MAX_SHARE_NAME_LENGTH = 80;
        public static final int MAX_BUFFER_SIZE = 65536; // 64KB default max buffer
        public static final int MAX_SMB2_BUFFER_SIZE = 8388608; // 8MB for SMB2/3
        public static final int MAX_CREDITS = 65535;
    
        // Patterns for validation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                assertEquals(16, result3);
            }
    
            @Test
            @DisplayName("Should handle maximum name length")
            void testMaximumNameLength() {
                byte[] maxName = new byte[65536]; // 64KB
                Arrays.fill(maxName, (byte) 'M');
                TestCreateContextRequest request = new TestCreateContextRequest(maxName);
    
                assertArrayEquals(maxName, request.getName());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                byte[] salt = new byte[64];
                SecureRandom random = new SecureRandom();
    
                for (int i = 0; i < hashAlgos.length; i++) {
                    hashAlgos[i] = random.nextInt(65536);
                }
                random.nextBytes(salt);
    
                PreauthIntegrityNegotiateContext original = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt);
    
                // Encode
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/config/BaseConfigurationTest.java

            assertNotNull(testConfig.getRandom());
            assertNotNull(testConfig.getLocalTimezone());
    
            // Check PID is set
            assertTrue(testConfig.getPid() >= 0);
            assertTrue(testConfig.getPid() < 65536);
    
            // Check machine ID
            assertNotNull(testConfig.getMachineId());
            assertEquals(32, testConfig.getMachineId().length);
    
            // Check native OS
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/SessionServicePacketTest.java

        }
    
        private static Stream<Arguments> provideInt4TestValues() {
            return Stream.of(Arguments.of(0), Arguments.of(1), Arguments.of(255), Arguments.of(256), Arguments.of(65535), Arguments.of(65536),
                    Arguments.of(0x7FFFFFFF), Arguments.of(0xFFFFFFFF));
        }
    
        @Test
        @DisplayName("readInt2 should correctly read 16-bit integer")
        void testReadInt2() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  10. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

          assertThat(ioe.message).isEqualTo("google.com")
          val cause = ioe.cause!!
          assertThat(cause).isInstanceOf<IOException>()
          assertThat(cause).hasMessage("response size exceeds limit (65536 bytes): 65537 bytes")
        }
      }
    
      @Test
      fun failOnBadResponse() {
        server.enqueue(dnsResponse("00"))
        try {
          dns.lookup("google.com")
          fail<Any>()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 11.7K bytes
    - Viewed (0)
Back to top