> +        assertEquals(subnet.properties().addressPrefix(), "10.2.0.0/24");
> +    }
> +
> +    public void listSubnets() throws InterruptedException {
> +
> +        
> server.enqueue(jsonResponse("/listsubnetswithinvirtualnetwork.json").setResponseCode(200));
> +
> +        final SubnetApi subnetApi = api.getSubnetApi(resourcegroup, 
> virtualNetwork);
> +
> +        List<Subnet> subnets = subnetApi.listSubnets();
> +
> +        String path = 
> String.format("/subscriptions/%s/resourcegroups/%s/providers/Microsoft.Network/virtualNetworks/%s/subnets?%s",
>  subscriptionid, resourcegroup, virtualNetwork, apiVersion);
> +        assertSent(server, "GET", path);
> +
> +        assertTrue(subnets.size() > 0);
> +    }

Add the tests that exercise the 404 fallbacks in list and get methods.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/262/files/1801c68f227e1f245a30c6fa6ff044e7e2634460#r60748023

Reply via email to