Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 144 for shorter (0.73 sec)

  1. src/test/java/jcifs/smb/SecurityBlobTest.java

        }
    
        // Demonstrates observed equals() asymmetry when this is shorter than argument
        @Test
        @DisplayName("equals: this shorter but same prefix -> true (observed behavior)")
        void equals_thisShorterSamePrefix_true_dueToImplementation() {
            // Arrange: left shorter than right but with identical prefix
            SecurityBlob shorter = new SecurityBlob(new byte[] { 1, 2 });
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java

            assertFalse(registration.isExpired(60000));
    
            // Wait a bit to ensure some time has passed
            Thread.sleep(50);
            // Should be expired with very short timeout (shorter than sleep time)
            assertTrue(registration.isExpired(10));
        }
    
        @Test
        void testStateTransitions() {
            assertEquals(WitnessRegistrationState.REGISTERING, registration.getState());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/witness/WitnessUnregisterMessage.java

            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
                // Write 20 zero bytes for null context handle
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/util/HMACT64Test.java

            HMACT64 hmac = new HMACT64(LONG_TEST_KEY);
            assertNotNull(hmac);
        }
    
        @Test
        void testConstructorWithShortKey() {
            // Test constructor with a key shorter than BLOCK_LENGTH (64 bytes)
            HMACT64 hmac = new HMACT64(SHORT_TEST_KEY);
            assertNotNull(hmac);
        }
    
        @Test
        void testEngineUpdateByte() {
            // Test engineUpdate(byte b)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/witness/WitnessHeartbeatMessage.java

            // Context handle (20 bytes)
            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
                // Write 20 zero bytes for null context handle
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/netbios/UniAddress.java

                        dots++;
                        i++;
                    }
                }
            }
    
            return false;
        }
    
        /**
         * Perform DNS SRV lookup on successively shorter suffixes of name
         * and return successful suffix or throw an UnknownHostException.
         * import javax.naming.*;
         * import javax.naming.directory.*;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/ResourceManagerTest.java

     */
    public class ResourceManagerTest {
    
        private ResourceManager resourceManager;
    
        @BeforeEach
        void setUp() {
            resourceManager = ResourceManager.getInstance();
            // Configure with shorter intervals for testing
            resourceManager.configure(1000, 100, true, true);
        }
    
        /**
         * Test resource for tracking
         */
        static class TestResource implements AutoCloseable {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/HMACT64Test.java

            }
        }
    
        @Test
        void testConstructorWithShortKey() throws NoSuchAlgorithmException {
            // Test constructor with a key shorter than BLOCK_LENGTH (64 bytes)
            try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
                mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5);
                HMACT64 hmac = new HMACT64(SHORT_TEST_KEY);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                assertEquals(1024, SMBUtil.readInt4(buffer, 4));
                assertEquals(2048, SMBUtil.readInt4(buffer, 32));
            }
    
            @Test
            @DisplayName("Should handle file ID shorter than 16 bytes")
            void testShortFileId() {
                byte[] shortFileId = new byte[8];
                Arrays.fill(shortFileId, (byte) 0xAB);
                request.setFileId(shortFileId);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java

            // Context handle (20 bytes)
            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
                // Write 20 zero bytes for null context handle
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 16.4K bytes
    - Viewed (0)
Back to top