Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testExpiration (0.06 sec)

  1. src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java

            assertFalse(registration.isExpired(60000));
    
            // Verify heartbeat was actually updated
            assertTrue(registration.getLastHeartbeat() > initialTime);
        }
    
        @Test
        void testExpiration() throws InterruptedException {
            // Registration should not be expired initially with long timeout
            assertFalse(registration.isExpired(60000));
    
            // Wait a bit to ensure some time has passed
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

            entry.invalidate();
    
            assertFalse(entry.isComplete());
            assertTrue(entry.hasChanges());
            assertTrue(entry.getChildren().isEmpty());
        }
    
        @Test
        public void testExpiration() {
            // Set a very short max age
            entry.setMaxAge(100); // 100ms
    
            assertFalse(entry.isExpired());
            assertFalse(entry.needsRefresh());
    
            // Wait for expiration
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top