> + *
> + * @author Andrew Bayer
> + */
> +@Test(groups = "live", singleThreaded = true, testName =
> "ProjectApiLiveTest")
> +public class ProjectApiLiveTest extends BaseCloudStackApiLiveTest {
> +
> + @Test
> + public void testListAccounts() throws Exception {
> + for (Project project : client.getProjectApi().listProjects())
> + checkProject(project);
> + }
> +
> + protected void checkProject(Project project) {
> + assertNotNull(project.getId());
> + assertEquals(project.toString(),
> client.getProjectApi().getProject(project.getId()).toString());
> + assertTrue(project.getState() != null && project.getState() !=
> Project.State.UNRECOGNIZED);
[minor] Split into two asserts or add a message showing what the offending
value actually is?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/215/files#r7915910