> +
> +        final SubnetApi subnetApi = api.getSubnetApi(resourcegroup, 
> VIRTUAL_NETWORK_NAME);
> +        Subnet subnet = subnetApi.getSubnet(DEFAULT_SUBNET_NAME);
> +
> +        assertNotNull(subnet.name());
> +        assertNotNull(subnet.properties().addressPrefix());
> +    }
> +
> +    @Test(groups = "live", dependsOnMethods = "getSubnet")
> +    public void listSubnets() {
> +
> +        final SubnetApi subnetApi = api.getSubnetApi(resourcegroup, 
> VIRTUAL_NETWORK_NAME);
> +        List<Subnet> subnets = subnetApi.listSubnets();
> +
> +        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#r60747858

Reply via email to