jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds-labs] [JCLOUDS-846] Completing missing mock tests (#159)
Date Thu, 02 Apr 2015 09:07:35 GMT
> +public class SubscriptionApiMockTest extends BaseAzureComputeApiMockTest {
> +
> +   public void testList() throws Exception {
> +      final MockWebServer server = mockAzureManagementServer();
> +      server.enqueue(xmlResponse("/rolesizes.xml"));
> +
> +      try {
> +         final SubscriptionApi api = api(server.getUrl("/")).getSubscriptionApi();
> +
> +         assertEquals(api.listRoleSizes(), ListRoleSizesHandlerTest.expected());
> +
> +         assertSent(server, "GET", "/rolesizes");
> +      } finally {
> +         server.shutdown();
> +      }
> +   }

Add also a test that exercises the fallback.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/159/files#r27641886
Mime
View raw message