Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for ofSeconds (0.11 sec)

  1. android/guava-tests/test/com/google/common/base/SuppliersTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testSuppliersNullChecks() throws Exception {
        new ClassSanityTester()
            .setDefault(Duration.class, Duration.ofSeconds(1))
            .forAllPublicStaticMethods(Suppliers.class)
            .testNulls();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/SuppliersTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testSuppliersNullChecks() throws Exception {
        new ClassSanityTester()
            .setDefault(Duration.class, Duration.ofSeconds(1))
            .forAllPublicStaticMethods(Suppliers.class)
            .testNulls();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/InterceptorTest.kt

            assertThat(chain.connectTimeoutMillis()).isEqualTo(100)
            chain.proceed(chain.request())
          }
        client =
          client.newBuilder()
            .connectTimeout(Duration.ofSeconds(5))
            .addInterceptor(interceptor1)
            .addInterceptor(interceptor2)
            .build()
        val request1 =
          Request.Builder()
            .url("http://" + TestUtil.UNREACHABLE_ADDRESS_IPV4)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        builder = builder.callTimeout(Duration.ofSeconds(0L))
        builder = builder.connectTimeout(0L, TimeUnit.SECONDS)
        builder = builder.connectTimeout(Duration.ofSeconds(0L))
        builder = builder.readTimeout(0L, TimeUnit.SECONDS)
        builder = builder.readTimeout(Duration.ofSeconds(0L))
        builder = builder.writeTimeout(0L, TimeUnit.SECONDS)
        builder = builder.writeTimeout(Duration.ofSeconds(0L))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/storage/StorageClientTest.java

                    .waitingFor(new HttpWaitStrategy()//
                            .forPath("/minio/health/ready")//
                            .forPort(port)//
                            .withStartupTimeout(Duration.ofSeconds(30)));
            logger.info("Starting {}", IMAGE_NAME);
            minioServer.start();
            logger.info("Started {}", IMAGE_NAME);
    
            String bucketName = "fess";
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      public void testTimeToLive_negative_duration() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        assertThrows(
            IllegalArgumentException.class, () -> builder.expireAfterWrite(Duration.ofSeconds(-1)));
      }
    
      @SuppressWarnings("ReturnValueIgnored")
      public void testTimeToLive_small() {
        CacheBuilder.newBuilder().expireAfterWrite(1, NANOSECONDS).build(identityLoader());
        // well, it didn't blow up.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

          client.routeDatabase,
          client.newBuilder()
            .build()
            .routeDatabase,
        )
        assertSame(
          client.routeDatabase,
          client.newBuilder()
            .callTimeout(Duration.ofSeconds(5))
            .build()
            .routeDatabase,
        )
    
        // logically different scope of client for route db
        assertNotSame(
          client.routeDatabase,
          client.newBuilder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

      ) {
        setUp(protocol, mockWebServer)
        server.enqueue(MockResponse(socketPolicy = NoResponse))
        server.enqueue(MockResponse(body = "A"))
        client =
          client.newBuilder()
            .readTimeout(Duration.ofSeconds(1))
            .build()
    
        // Make a call expecting a timeout reading the response headers.
        val call1 = client.newCall(Request(server.url("/")))
        assertFailsWith<SocketTimeoutException> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CallTest.kt

            .throttleBody(1, 750, TimeUnit.MILLISECONDS)
            .build(),
        )
    
        // First request: time out after 1s.
        client =
          client.newBuilder()
            .readTimeout(Duration.ofSeconds(1))
            .build()
        executeSynchronously("/a").assertBody("abc")
    
        // Second request: time out after 250ms.
        client =
          client.newBuilder()
            .readTimeout(Duration.ofMillis(250))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
Back to top