> + public void testGetInstanceView() { > + VirtualMachineInstance vmi = api().getInstanceDetails(getName()); > + assertTrue(!vmi.statuses().isEmpty()); > + } > + > + @Test(dependsOnMethods = "testStart") > + public void testStop() { > + api().stop(getName()); > + //Poll until resource is ready to be used > + boolean jobDone = Predicates2.retry(new Predicate<String>() { > + @Override public boolean apply(String name) { > + String status = ""; > + List<VirtualMachineInstance.VirtualMachineStatus> statuses = > api().getInstanceDetails(name).statuses(); > + for (int c = 0; c < statuses.size(); c++) { > + if (statuses.get(c).code().substring(0, > 10).equals("PowerState")) { > + status = statuses.get(c).displayStatus();
Done. Added `break` to all the for loops in this test. --- 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/265/files/e4129688520e3e28b8068e0514a11f41e1cfa568#r62900852