Package com.squareup.okhttp.mockwebserver

Examples of com.squareup.okhttp.mockwebserver.Dispatcher


   @Test public void longContentLengthSupported() throws Exception {
      long reallyLongContent = TestUtils.isJava6() ? Integer.MAX_VALUE : Long.MAX_VALUE;

      // Setup a mock server that doesn't attempt to read the request payload.
      MockWebServer server = new MockWebServer();
      server.setDispatcher(new Dispatcher() {
         @Override public MockResponse dispatch(RecordedRequest recordedRequest) {
            return new MockResponse();
         }
      });
      server.play();
View Full Code Here

TOP

Related Classes of com.squareup.okhttp.mockwebserver.Dispatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.