Package com.squareup.okhttp.mockwebserver

Examples of com.squareup.okhttp.mockwebserver.MockWebServer.shutdown()


         assertRequestHasParameters(server.takeRequest(), "/droplets/1/restore", ImmutableMultimap.of("image_id", "3"));
         assertTrue(event > 0);
      } finally {
         api.close();
         server.shutdown();
      }
   }

   public void testRestoreNonexistentDroplet() throws Exception {
      MockWebServer server = mockWebServer();
View Full Code Here


         }

         assertRequestHasParameters(server.takeRequest(), "/droplets/1/restore", ImmutableMultimap.of("image_id", "3"));
      } finally {
         api.close();
         server.shutdown();
      }
   }

   public void testRebuildDroplet() throws Exception {
      MockWebServer server = mockWebServer();
View Full Code Here

         assertRequestHasParameters(server.takeRequest(), "/droplets/1/rebuild", ImmutableMultimap.of("image_id", "3"));
         assertTrue(event > 0);
      } finally {
         api.close();
         server.shutdown();
      }
   }

   public void testRebuildNonexistentDroplet() throws Exception {
      MockWebServer server = mockWebServer();
View Full Code Here

         }

         assertRequestHasParameters(server.takeRequest(), "/droplets/1/rebuild", ImmutableMultimap.of("image_id", "3"));
      } finally {
         api.close();
         server.shutdown();
      }
   }

   public void testRenameDroplet() throws Exception {
      MockWebServer server = mockWebServer();
View Full Code Here

         assertRequestHasParameters(server.takeRequest(), "/droplets/1/rename", ImmutableMultimap.of("name", "foo"));
         assertTrue(event > 0);
      } finally {
         api.close();
         server.shutdown();
      }
   }

   public void testRenameNonexistentDroplet() throws Exception {
      MockWebServer server = mockWebServer();
View Full Code Here

         }

         assertRequestHasParameters(server.takeRequest(), "/droplets/1/rename", ImmutableMultimap.of("name", "foo"));
      } finally {
         api.close();
         server.shutdown();
      }
   }

   public void testDestroyDroplet() throws Exception {
      MockWebServer server = mockWebServer();
View Full Code Here

         assertRequestHasCommonFields(server.takeRequest(), "/droplets/1/destroy");
         assertTrue(event > 0);
      } finally {
         api.close();
         server.shutdown();
      }
   }

   public void testDestroyNonexistentDroplet() throws Exception {
      MockWebServer server = mockWebServer();
View Full Code Here

         }

         assertRequestHasCommonFields(server.takeRequest(), "/droplets/1/destroy");
      } finally {
         api.close();
         server.shutdown();
      }
   }

   public void testDestroyWithOptionsDroplet() throws Exception {
      MockWebServer server = mockWebServer();
View Full Code Here

         assertRequestHasParameters(server.takeRequest(), "/droplets/1/destroy",
               ImmutableMultimap.of("scrub_data", "true"));
         assertTrue(event > 0);
      } finally {
         api.close();
         server.shutdown();
      }
   }

   public void testDestroyWithOptionsNonexistentDroplet() throws Exception {
      MockWebServer server = mockWebServer();
View Full Code Here

         assertRequestHasParameters(server.takeRequest(), "/droplets/1/destroy",
               ImmutableMultimap.of("scrub_data", "true"));
      } finally {
         api.close();
         server.shutdown();
      }
   }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.