Package org.jclouds.gogrid.options

Examples of org.jclouds.gogrid.options.SaveImageOptions


   @Test
   public void testSaveImageOptions() throws NoSuchMethodException, IOException {
      Invokable<?, ?> method = method(GridImageAsyncClient.class, "saveImageFromServer", String.class, String.class,
            SaveImageOptions[].class);
      GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of("friendly", "serverName",
            new SaveImageOptions().withDescription("fooy")));

      assertRequestLineEquals(
            httpRequest,
            "GET https://api.gogrid.com/api/grid/image/save?v=1.5&friendlyName=friendly&server=serverName&description=fooy HTTP/1.1");
      assertNonPayloadHeadersEqual(httpRequest, "");
View Full Code Here


   @Test
   public void testSaveImageOptions() throws NoSuchMethodException, IOException {
      Invokable<?, ?> method = method(GridImageApi.class, "saveImageFromServer", String.class, String.class,
            SaveImageOptions[].class);
      GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of("friendly", "serverName",
            new SaveImageOptions().withDescription("fooy")));

      assertRequestLineEquals(
            httpRequest,
            "GET https://api.gogrid.com/api/grid/image/save?v=1.5&friendlyName=friendly&server=serverName&description=fooy HTTP/1.1");
      assertNonPayloadHeadersEqual(httpRequest, "");
View Full Code Here

   @Test
   public void testSaveImageOptions() throws NoSuchMethodException, IOException {
      Invokable<?, ?> method = method(GridImageAsyncClient.class, "saveImageFromServer", String.class, String.class,
            SaveImageOptions[].class);
      GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of("friendly", "serverName",
            new SaveImageOptions().withDescription("fooy")));

      assertRequestLineEquals(
            httpRequest,
            "GET https://api.gogrid.com/api/grid/image/save?v=1.5&friendlyName=friendly&server=serverName&description=fooy HTTP/1.1");
      assertNonPayloadHeadersEqual(httpRequest, "");
View Full Code Here

   @Test
   public void testSaveImageOptions() throws NoSuchMethodException, IOException {
      Invokable<?, ?> method = method(GridImageApi.class, "saveImageFromServer", String.class, String.class,
            SaveImageOptions[].class);
      GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of("friendly", "serverName",
            new SaveImageOptions().withDescription("fooy")));

      assertRequestLineEquals(
            httpRequest,
            "GET https://api.gogrid.com/api/grid/image/save?v=1.5&friendlyName=friendly&server=serverName&description=fooy HTTP/1.1");
      assertNonPayloadHeadersEqual(httpRequest, "");
View Full Code Here

TOP

Related Classes of org.jclouds.gogrid.options.SaveImageOptions

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.