Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for foo3 (0.02 sec)

  1. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator();
        Iterator<String> filtered = filter(unfiltered, equalTo("foo"));
        List<String> expected = singletonList("foo");
        List<String> actual = Lists.newArrayList(filtered);
        assertEquals(expected, actual);
      }
    
      public void testFilterNoMatch() {
        Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt

        val url = parse("http://host/?foo[]=1&foo[]=2&foo[]=3")
        assertThat(url.querySize).isEqualTo(3)
        assertThat(url.queryParameterNames).isEqualTo(setOf("foo[]"))
        assertThat(url.queryParameterValue(0)).isEqualTo("1")
        assertThat(url.queryParameterValue(1)).isEqualTo("2")
        assertThat(url.queryParameterValue(2)).isEqualTo("3")
        assertThat(url.queryParameterValues("foo[]")).containsExactly("1", "2", "3")
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Aug 04 07:38:48 UTC 2025
    - 69.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator();
        Iterator<String> filtered = filter(unfiltered, equalTo("foo"));
        List<String> expected = singletonList("foo");
        List<String> actual = Lists.newArrayList(filtered);
        assertEquals(expected, actual);
      }
    
      public void testFilterNoMatch() {
        Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

          PushPromise(
            "GET",
            "/foo/bar",
            headersOf("foo", "bar"),
            MockResponse(body = "bar"),
          )
        server.enqueue(
          MockResponse
            .Builder()
            .body("ABCDE")
            .addPush(pushPromise)
            .build(),
        )
        val call = client.newCall(Request(server.url("/foo")))
        val response = call.execute()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

      }
    
      @Test
      fun noConnectionFoundOnFollowUp() {
        server.enqueue(
          MockResponse
            .Builder()
            .code(301)
            .addHeader("Location", "/foo")
            .build(),
        )
        server.enqueue(
          MockResponse
            .Builder()
            .body("ABC")
            .build(),
        )
        val call =
          client.newCall(
            Request
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 60.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/Futures.java

         * LF<? extends @Nullable V>. That might be better: There's currently no difference between the
         * outputs users get when calling this with <Foo> and calling it with <@Nullable Foo>. The only
         * difference is that calling it with <Foo> won't work when an input Future has a @Nullable
         * type. So why even make that error possible by giving callers the choice?
         *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 64.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

       *   Iterator<E> it = set.iterator();
       *   while (it.hasNext()) {
       *     foo(it.next());
       *   }
       * }
       * }
       *
       * <p>or:
       *
       * {@snippet :
       * NavigableSet<E> set = synchronizedNavigableSet(new TreeSet<E>());
       * NavigableSet<E> set2 = set.descendingSet().headSet(foo);
       *  ...
       * synchronized (set) { // Note: set, not set2!!!
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                    closer.eventuallyClose(autoCloseable, closingExecutor);
                    return "foo";
                  }
                },
                executor);
        assertThat(getFinalValue(closingFuture)).isEqualTo("foo");
        waitUntilClosed(closingFuture);
        assertClosed(closeable1);
      }
    
      public void testStatusFuture() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 75.4K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer.play()
    
        // Play it back.
        val connection = connect(peer)
        val stream = connection.newStream(headerEntries("a", "android"), true)
        stream.enqueueTrailers(headersOf("foo", "bar"))
        val sink = stream.sink.buffer()
        sink.writeUtf8("abcdefghi")
        sink.close()
    
        // Verify the peer received what was expected.
        val headers1 = peer.takeFrame()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 75.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

              public String load(String key) throws InterruptedException {
                callCount.incrementAndGet();
                secondSignal.countDown();
                computeSignal.await();
                return key + "foo";
              }
            };
    
        LoadingCache<String, String> cache =
            CacheBuilder.newBuilder().weakKeys().build(computeFunction);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
Back to top