> +import static org.testng.Assert.assertEquals;
> +import static org.testng.Assert.assertTrue;
> +
> +/**
> + * Tests annotation parsing of {@code StackApi}
> + */
> +@Test(groups = "unit", testName = "StackApiMockTest")
> +public class StackApiMockTest extends BaseHeatApiMockTest {
> +
> + public static final String TEST_STACK_NAME = "testStack";
> + public static final String TEST_STACK_ID = "testStack";
> + public static final String RESOURCES_TEST_NAME = "testResources";
> + public static final String TEST_STACK_RESOURCE_NAME = "cinder_volume";
> +
> +
> + public void testGetAutoStack() throws Exception {
The failure states need to also be tested. For example, with
MockResponse().setResponseCode(404), to make sure the @Fallback annotations are
also tested.
For example
https://github.com/jclouds/jclouds-labs-openstack/blob/master/openstack-neutron/src/test/java/org/jclouds/openstack/neutron/v2/features/NetworkApiMockTest.java#L252
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/188/files#r28278924