Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 327 for secondes (0.73 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

      public void testParse_writeExpirationSeconds() {
        CacheBuilderSpec spec = parse("expireAfterWrite=10s");
        assertEquals(SECONDS, spec.writeExpirationTimeUnit);
        assertEquals(10L, spec.writeExpirationDuration);
        assertCacheBuilderEquivalence(
            CacheBuilder.newBuilder().expireAfterWrite(10L, SECONDS), CacheBuilder.from(spec));
      }
    
      public void testParse_writeExpirationRepeated() {
        assertThrows(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

     * the License.
     */
    
    package com.google.common.util.concurrent.testing;
    
    import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.util.concurrent.ListenableFuture;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutionException;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri May 12 18:12:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTester.java

        assertTrue(latch.await(5, SECONDS));
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
    
        assertEquals(expectedValue, future.get());
      }
    
      public void testCancelledFuture() throws InterruptedException, ExecutionException {
        assertTrue(future.isDone());
        assertTrue(future.isCancelled());
    
        assertTrue(latch.await(5, SECONDS));
        assertTrue(future.isDone());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

            assertEquals("Store2", names[1]);
            assertEquals(1, loadCount[0]);
    
            // Second immediate call should use cache
            names = testFactory.getDataStoreNames();
            assertEquals(2, names.length);
            assertEquals(1, loadCount[0]); // Should not increment
    
            // Simulate time passing (more than 60 seconds)
            testFactory.lastLoadedTime = System.currentTimeMillis() - 61000L;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

        assertFailsWith<SocketTimeoutException> {
          call.execute()
        }
        val elapsedNanos = System.nanoTime() - startNanos
        org.junit.jupiter.api.Assertions.assertTrue(
          elapsedNanos < TimeUnit.SECONDS.toNanos(5),
          "Timeout should have taken ~100ms but was " + elapsedNanos / 1e6 + " ms",
        )
      }
    
      @Test
      fun chainWithReadTimeout() {
        val interceptor1 =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java

                ImmutableSet.of(
                    DurationSpec.of(0, SECONDS), DurationSpec.of(1, SECONDS), DurationSpec.of(1, DAYS)))
            .withExpireAfterAccesses(
                ImmutableSet.of(
                    DurationSpec.of(0, SECONDS), DurationSpec.of(1, SECONDS), DurationSpec.of(1, DAYS)))
            .withRefreshes(ImmutableSet.of(DurationSpec.of(1, SECONDS), DurationSpec.of(1, DAYS)));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        var throttleBytesPerPeriod: Long = mockResponse.throttleBytesPerPeriod
        throttleBytesPerPeriod = mockResponse.throttleBytesPerPeriod
        var throttlePeriod: Long = mockResponse.getThrottlePeriod(TimeUnit.SECONDS)
        mockResponse = mockResponse.setBodyDelay(0L, TimeUnit.SECONDS)
        val bodyDelay: Long = mockResponse.getBodyDelay(TimeUnit.SECONDS)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  8. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

      ).help(
        "Maximum time allowed for connection (seconds)",
      ).int()
        .default(DEFAULT_TIMEOUT)
    
      val readTimeout: Int by option("--read-timeout")
        .help("Maximum time allowed for reading data (seconds)")
        .int()
        .default(DEFAULT_TIMEOUT)
    
      val callTimeout: Int by option(
        "--call-timeout",
      ).help(
        "Maximum time allowed for the entire call (seconds)",
      ).int()
        .default(DEFAULT_TIMEOUT)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/TestPlatform.java

    import static com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    import static junit.framework.Assert.assertFalse;
    import static junit.framework.Assert.fail;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.concurrent.ExecutionException;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

          this.notBefore = notBefore
          this.notAfter = notAfter
        }
    
        /**
         * Sets the certificate to be valid immediately and until the specified duration has elapsed.
         * The precision of this field is seconds; further precision will be truncated.
         */
        fun duration(
          duration: Long,
          unit: TimeUnit,
        ) = apply {
          val now = System.currentTimeMillis()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 21.6K bytes
    - Viewed (0)
Back to top