Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,602 for lengths (0.05 sec)

  1. src/test/java/jcifs/NetbiosNameTest.java

            // When
            String scope = mockNetbiosName.getScope();
    
            // Then
            assertNull(scope);
        }
    
        @Test
        @DisplayName("Should handle various name lengths")
        void testVariousNameLengths() {
            // NetBIOS names can be up to 15 characters
            String[] testNames = { "A", "SERVER", "LONGSERVERNAME", "EXACTLY15CHARS1" };
    
            for (String testName : testNames) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

            try {
                // Time comparison between different length passwords
                long timeDiffLength = measureEqualsTime(auth1, auth2, TIMING_ITERATIONS);
    
                // Create same length passwords for comparison
                char[] password3 = "short".toCharArray();
                char[] password4 = "shore".toCharArray(); // Same length, different content
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

            }
    
            if (compareResult < 0) {
              high = mid - 1
            } else if (compareResult > 0) {
              low = mid + end + 1
            } else {
              // We found a match, but are the lengths equal?
              val publicSuffixBytesLeft = publicSuffixLength - publicSuffixByteIndex
              var labelBytesLeft = labels[currentLabelIndex].size - currentLabelByteIndex
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

            int result = response.readSetupWireFormat(buffer, 0, buffer.length);
    
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test readParametersWireFormat reads length correctly")
        void testReadParametersWireFormat() throws Exception {
            byte[] buffer = new byte[100];
            int expectedLength = 0x12345678;
    
            // Write length in little-endian format
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/entity/FessUserTest.java

            assertNotNull("Expected array is null but actual is not", expected);
            assertNotNull("Actual array is null but expected is not", actual);
            assertEquals("Array lengths differ", expected.length, actual.length);
            for (int i = 0; i < expected.length; i++) {
                assertEquals("Arrays differ at index " + i, expected[i], actual[i]);
            }
        }
    
        // Test implementation of FessUser interface
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            int paramWritten = trans2QueryPathInfo.writeParametersWireFormat(paramBuffer, 0);
            int dataWritten = trans2QueryPathInfo.writeDataWireFormat(dataBuffer, 0);
    
            // Verify lengths
            assertEquals(2, setupWritten);
            assertTrue(paramWritten > 6);
            assertEquals(0, dataWritten);
    
            // Verify setup content
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

                return;
            }
            if (expected == null || actual == null) {
                fail("Arrays are not equal: one is null");
            }
            assertEquals("Array lengths differ", expected.length, actual.length);
            for (int i = 0; i < expected.length; i++) {
                assertEquals("Array element at index " + i + " differs", expected[i], actual[i]);
            }
        }
    
        @Override
        public void setUp() throws Exception {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 25K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

            @DisplayName("Should handle various data lengths")
            void testVariousDataLengths(int length) throws SMBProtocolDecodingException {
                int result = testResponse.decode(testBuffer, 0, length);
    
                assertEquals(length, result);
                assertNotNull(testResponse.getData());
                assertEquals(length, testResponse.getData().length);
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                    offset += name.length;
                }
    
                // Write data if present
                if (data != null && data.length > 0) {
                    System.arraycopy(data, 0, dst, offset, data.length);
                    offset += data.length;
                }
    
                // Pad to 8-byte boundary
                while ((offset - dstIndex) % 8 != 0) {
                    dst[offset++] = 0;
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/SessionServicePacketTest.java

        void testReadLengthMaximum() {
            byte[] src = { (byte) 0x00, (byte) 0x01, (byte) 0xFF, (byte) 0xFF };
            int length = SessionServicePacket.readLength(src, 0);
    
            assertEquals(0x01FFFF, length);
        }
    
        @Test
        @DisplayName("readLength should handle zero length")
        void testReadLengthZero() {
            byte[] src = { (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top