Search Options

Results per page
Sort
Preferred Languages
Advance

Results 471 - 480 of 1,029 for Tout (0.03 sec)

  1. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackRoundTripTest.kt

      internal class StoriesTestProvider : SimpleProvider() {
        override fun arguments(): List<Any> = createStories(RAW_DATA)
      }
    
      private val bytesOut = Buffer()
      private val hpackWriter = Hpack.Writer(out = bytesOut)
    
      @ParameterizedTest
      @ArgumentsSource(StoriesTestProvider::class)
      fun testRoundTrip(story: Story) {
        assumeFalse(
          story === Story.MISSING,
          "Test stories missing, checkout git submodule",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/guide/PostExample.java

        PostExample example = new PostExample();
        String json = example.bowlingJson("Jesse", "Jake");
        String response = example.post("http://www.roundsapp.com/post", json);
        System.out.println(response);
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java

            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
      public static void main(String... args) throws Exception {
        new CheckHandshake().run();
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/TestPlatform.java

    import com.google.common.annotations.GwtCompatible;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeoutException;
    
    /** Methods factored out so that they can be emulated differently in GWT. */
    @GwtCompatible(emulated = true)
    final class TestPlatform {
      static void verifyGetOnPendingFuture(Future<?> future) {
        checkNotNull(future);
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                    checkNotNull(key);
                    return map.put(key, value);
                  }
                };
              }
            },
            "HashMap w/out null keys",
            ALLOWS_NULL_VALUES);
      }
    
      private static Test testsForHashMapNullValuesForbidden() {
        return wrappedHashMapTests(
            new WrappedHashMapGenerator() {
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/RecordingCallback.kt

          }
          val nowMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime())
          if (nowMillis >= timeoutMillis) break
          (this as Object).wait(timeoutMillis - nowMillis)
        }
    
        throw AssertionError("Timed out waiting for response to $url")
      }
    
      companion object {
        val TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(10)
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/PostStreaming.java

            .post(requestBody)
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
      public static void main(String... args) throws Exception {
        new PostStreaming().run();
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Jul 06 03:18:15 UTC 2018
    - 2.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/FlushablesTest.java

    import java.io.IOException;
    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link Flushables}.
     *
     * <p>Checks proper flushing behavior, and ensures that IOExceptions on Flushable.flush() are not
     * propagated out from the {@link Flushables#flush} method if {@code swallowException} is true.
     *
     * @author Michael Lancaster
     */
    public class FlushablesTest extends TestCase {
      private Flushable mockFlushable;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.3K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/CleanArgument.java

        public static String[] cleanArgs(String[] args) {
            try {
                return doCleanArgs(args);
            } catch (RuntimeException e) {
                for (String a : args) {
                    System.out.println("Arg: '" + a + "'");
                }
                throw e;
            }
        }
    
        private static String[] doCleanArgs(String[] args) {
            List<String> cleaned = new ArrayList<>();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/KotlinSourceParser.kt

            override fun close() {
                Disposer.dispose(disposable)
            }
        }
    
        private
        val messageCollector: MessageCollector
            get() = PrintingMessageCollector(System.out, MessageRenderer.PLAIN_RELATIVE_PATHS, false)
    
        fun <T : Any> mapParsedKotlinFiles(vararg sourceRoots: File, block: (KtFile) -> T): List<T> =
            withParsedKotlinSource(sourceRoots.toList()) { ktFiles ->
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Oct 15 13:02:35 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top