Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 167 for newBuilder (0.06 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/BuildModelSourceTransformerTest.java

            Model initial = new Model(org.apache.maven.api.model.Model.newBuilder()
                    .parent(org.apache.maven.api.model.Parent.newBuilder()
                            .groupId("GROUPID")
                            .artifactId("ARTIFACTID")
                            .build())
                    .build());
            Model expected = new Model(org.apache.maven.api.model.Model.newBuilder()
                    .parent(org.apache.maven.api.model.Parent.newBuilder()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

            CacheBuilder.newBuilder().expireAfterWrite(10L, DAYS), CacheBuilder.from(spec));
      }
    
      public void testParse_writeExpirationHours() {
        CacheBuilderSpec spec = parse("expireAfterWrite=150h");
        assertEquals(HOURS, spec.writeExpirationTimeUnit);
        assertEquals(150L, spec.writeExpirationDuration);
        assertCacheBuilderEquivalence(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        super.setUp();
    
        fakeTicker = new FakeTicker();
      }
    
      public void testLoader() throws ExecutionException {
    
        final Cache<Integer, Integer> cache = CacheBuilder.newBuilder().build();
    
        Callable<Integer> loader =
            new Callable<Integer>() {
              private int i = 0;
    
              @Override
              public Integer call() throws Exception {
                return ++i;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

      // 4. successful stale cached GET response
      // 5. unsuccessful response
      @Test
      fun usesCache() {
        val cache = Cache(cacheFs, "cache".toPath(), (100 * 1024).toLong())
        val cachedClient = bootstrapClient.newBuilder().cache(cache).build()
        val cachedDns = buildLocalhost(cachedClient, false)
    
        repeat(2) {
          server.enqueue(
            dnsResponse(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/DefaultModelResolverTest.java

         */
        public DefaultModelResolverTest() {
            super();
        }
    
        @Test
        void testResolveParentThrowsUnresolvableModelExceptionWhenNotFound() throws Exception {
            final Parent parent = Parent.newBuilder()
                    .groupId("ut.simple")
                    .artifactId("artifact")
                    .version("0")
                    .build();
    
            UnresolvableModelException e = assertThrows(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          client =
            client.newBuilder()
              .sslSocketFactory(
                handshakeCertificates.sslSocketFactory(),
                handshakeCertificates.trustManager,
              )
              .hostnameVerifier(RecordingHostnameVerifier())
              .build()
        }
        server.enqueue(MockResponse())
        client =
          client.newBuilder()
            .socketFactory(uselessSocketFactory)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

          LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().maximumSize(i).build(loader);
          assertEquals(i, CacheTesting.getTotalSegmentSize(cache));
        }
      }
    
      public void testEviction_setMaxSegmentWeight() {
        IdentityLoader<Object> loader = identityLoader();
        for (int i = 1; i < 1000; i++) {
          LoadingCache<Object, Object> cache =
              CacheBuilder.newBuilder().maximumWeight(i).weigher(constantWeigher(1)).build(loader);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

      private fun enableProtocol(protocol: Protocol) {
        enableTls()
        client =
          client.newBuilder()
            .protocols(listOf(protocol, Protocol.HTTP_1_1))
            .build()
        server1.protocols = client.protocols
        server2.protocols = client.protocols
      }
    
      private fun enableTls() {
        client =
          client.newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue May 14 17:48:07 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

          client.newBuilder()
            .dns { listOf() }
            .build()
            .routeDatabase,
        )
        assertNotSame(
          client.routeDatabase,
          client.newBuilder()
            .proxyAuthenticator { _: Route?, _: Response? -> null }
            .build()
            .routeDatabase,
        )
        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)
  10. okhttp/src/test/java/okhttp3/CookiesTest.kt

      fun setUp(server: MockWebServer) {
        this.server = server
      }
    
      @Test
      fun testNetscapeResponse() {
        val cookieManager = CookieManager(null, CookiePolicy.ACCEPT_ORIGINAL_SERVER)
        client =
          client.newBuilder()
            .cookieJar(JavaNetCookieJar(cookieManager))
            .build()
        val urlWithIpAddress = urlWithIpAddress(server, "/path/foo")
        server.enqueue(
          MockResponse.Builder()
            .addHeader(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top