public void testVirtualMachineIdStatic() { ListServiceOfferingsOptions options = virtualMachineId("6"); assertEquals(ImmutableList.of("6"), options.buildQueryParameters().get("virtualmachineid")); } }
public void testVirtualMachineIdStatic() { ListServiceOfferingsOptions options = virtualMachineId("6"); assertEquals(ImmutableList.of("6"), options.buildQueryParameters().get("virtualmachineid")); } }
public void testListServiceOfferingsOptions() throws SecurityException, NoSuchMethodException, IOException { Invokable<?, ?> method = method(OfferingAsyncClient.class, "listServiceOfferings", ListServiceOfferingsOptions[].class); GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of(ListServiceOfferingsOptions.Builder.virtualMachineId("4") .domainId("5").id("6"))); assertRequestLineEquals( httpRequest, "GET http://localhost:8080/client/api?response=json&command=listServiceOfferings&listAll=true&virtualmachineid=4&domainid=5&id=6 HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, "Accept: application/json\n"); assertPayloadEquals(httpRequest, null, null, false); assertResponseParserClassEquals(method, httpRequest, ParseFirstJsonValueNamed.class); assertSaxResponseParserClassEquals(method, null); assertFallbackClassEquals(method, EmptySetOnNotFoundOr404.class); checkFilters(httpRequest); }
public void testListServiceOfferingsOptions() throws SecurityException, NoSuchMethodException, IOException { Invokable<?, ?> method = method(OfferingApi.class, "listServiceOfferings", ListServiceOfferingsOptions[].class); GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of(ListServiceOfferingsOptions.Builder.virtualMachineId("4") .domainId("5").id("6"))); assertRequestLineEquals( httpRequest, "GET http://localhost:8080/client/api?response=json&command=listServiceOfferings&listAll=true&virtualmachineid=4&domainid=5&id=6 HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, "Accept: application/json\n"); assertPayloadEquals(httpRequest, null, null, false); assertResponseParserClassEquals(method, httpRequest, ParseFirstJsonValueNamed.class); assertSaxResponseParserClassEquals(method, null); assertFallbackClassEquals(method, EmptySetOnNotFoundOr404.class); checkFilters(httpRequest); }