3839404142434445464748
@After public void tearDown() throws Exception { for (Iterator<Instance> it = instances.iterator(); it.hasNext();) { final Instance instance = it.next(); instance.stop(); } } @Test public void testTwoNodes() throws Throwable {
5253545556575859606162
if (instances==null || instances.size()==0) { return; } for (Iterator<Instance> it = instances.iterator(); it.hasNext();) { Instance i = it.next(); i.stop(); it.remove(); } } @Test
6869707172737475767778
@AfterClass public static void tearDown() throws Exception { for (Iterator<Instance> it = instances.iterator(); it.hasNext();) { final Instance instance = it.next(); instance.stop(); } } @Test @Retry(timeoutMsec=30000, intervalMsec=500)