Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java

            assertTrue(second.isBefore(third), "Time should progress forward between measurements");
        }
    
        @Test
        @DisplayName("MonotonicClock elapsed time should increase")
        void testElapsedTime() throws InterruptedException {
            Duration initial = MonotonicClock.elapsed();
            Thread.sleep(50); // Longer delay for more reliable measurement
            Duration later = MonotonicClock.elapsed();
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            assertFalse(exception.isFileSystemError());
            assertTrue(exception.isTransientError());
        }
    
        @Test
        @DisplayName("Should track elapsed time")
        void testElapsedTime() throws InterruptedException {
            // Given
            exception = new SmbOperationException(SmbOperationException.ErrorCode.BUSY, "Server busy");
    
            // When
            Thread.sleep(100);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
Back to top