public void testGetFlavorsDetail() throws Exception { Set<Flavor> response = client.listFlavors(); assert null != response; long flavorCount = response.size(); assertTrue(flavorCount >= 0); for (Flavor flavor : response) { Flavor newDetails = client.getFlavor(flavor.getId()); assertEquals(flavor, newDetails); } }
@Test public void testGetFlavorDetailsNotFound() throws Exception { assert client.getFlavor(12312987) == null; }