Fix for support maven surefire plugin test runner

This commit is contained in:
Victor Galkin 2011-04-26 18:19:12 +04:00
parent cfa8b1497a
commit bacafb98dc
3 changed files with 7 additions and 4 deletions

View File

@ -53,7 +53,7 @@ public class ComputeBase {
protected Properties overrides;
@BeforeTest
public void setupClient() throws InterruptedException, ExecutionException, TimeoutException, IOException {
public void before() throws InterruptedException, ExecutionException, TimeoutException, IOException {
Properties properties = setupProperties(this.getClass());
setupOverrides(properties);
overrides = properties;

View File

@ -69,7 +69,7 @@ import static org.testng.Assert.*;
@Test(groups = "novalive", enabled = true, sequential = true)
public class NovaComputeServiceLiveTest extends ComputeBase {
private String group = "compute service test group";
private static String group = "compute service test group";
protected void checkNodes(Iterable<? extends NodeMetadata> nodes, String tag) throws IOException {
@ -91,8 +91,11 @@ public class NovaComputeServiceLiveTest extends ComputeBase {
}
}
@BeforeTest
public void before() {
@Override
public void before() throws IOException, ExecutionException, TimeoutException, InterruptedException {
super.before();
computeService.destroyNodesMatching(inGroup(group));
}

View File

@ -18,7 +18,7 @@ import static org.jclouds.compute.predicates.NodePredicates.inGroup;
*/
public class ServiceActionsLiveTest extends ComputeBase {
private String group = "ServiceActionsLiveTest";
static private String group = "ServiceActionsLiveTest";
@Test
public void testReboot() throws Exception {