Fix for support maven surefire plugin test runner

This commit is contained in:
Victor Galkin 2011-04-26 19:34:07 +04:00
parent bb09790060
commit 63c7f9c319
1 changed files with 9 additions and 0 deletions

View File

@ -5,8 +5,10 @@ import com.google.common.collect.Iterables;
import org.jclouds.compute.domain.NodeMetadata; import org.jclouds.compute.domain.NodeMetadata;
import org.jclouds.compute.domain.NodeState; import org.jclouds.compute.domain.NodeState;
import org.testng.annotations.AfterTest; import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import java.io.IOException;
import java.util.Set; import java.util.Set;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException; import java.util.concurrent.TimeoutException;
@ -20,6 +22,13 @@ public class ServiceActionsLiveTest extends ComputeBase {
static private String group = "ServiceActionsLiveTest"; static private String group = "ServiceActionsLiveTest";
@BeforeTest
@Override
public void before() throws IOException, ExecutionException, TimeoutException, InterruptedException {
super.before();
computeService.destroyNodesMatching(inGroup(group));
}
@Test @Test
public void testReboot() throws Exception { public void testReboot() throws Exception {
getDefaultNodeImmediately(group); getDefaultNodeImmediately(group);