> + public void testGetAllIpBlock() throws Exception {
> + MockWebServer server = mockWebServer();
> + server.enqueue(new
> MockResponse().setBody(payloadFromResource("/ipblock/ipblocks.xml")));
> +
> + ProfitBricksApi pbApi = api(server.getUrl(rootUrl));
> + IpBlockApi api = pbApi.ipBlockApi();
> +
> + try {
> + List<IpBlock> ipBlocks = api.getAllIpBlock();
> + assertRequestHasCommonProperties(server.takeRequest());
> + assertNotNull(ipBlocks);
> + } finally {
> + pbApi.close();
> + server.shutdown();
> + }
> + }
The get all blocks method also defines a 404 fallback. Add the corresponding
test.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/141/files#r25603960