diff --git a/compute/src/test/java/org/jclouds/compute/StubComputeServiceIntegrationTest.java b/compute/src/test/java/org/jclouds/compute/StubComputeServiceIntegrationTest.java index 8b42c1e2eb..340817a75f 100644 --- a/compute/src/test/java/org/jclouds/compute/StubComputeServiceIntegrationTest.java +++ b/compute/src/test/java/org/jclouds/compute/StubComputeServiceIntegrationTest.java @@ -32,7 +32,6 @@ import java.util.Set; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; import org.easymock.IArgumentMatcher; import org.jclouds.compute.domain.ExecResponse; @@ -370,7 +369,7 @@ public class StubComputeServiceIntegrationTest extends client.connect(); expect(client.exec("echo hello")).andReturn(new ExecResponse("hello", "", 0)); - expect(client.exec("java -version")).andReturn(new ExecResponse("", "1.7", 0)); + expect(client.exec("java -version")).andReturn(new ExecResponse("", "OpenJDK", 0)); client.disconnect(); } @@ -530,9 +529,4 @@ public class StubComputeServiceIntegrationTest extends super.testDestroyNodes(); } - @Override - protected void cleanup() throws InterruptedException, ExecutionException, TimeoutException { - super.cleanup(); - } - } \ No newline at end of file diff --git a/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java b/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java index 6aa7841043..bbe9921f50 100644 --- a/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java +++ b/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java @@ -98,7 +98,7 @@ import org.jclouds.scriptbuilder.statements.login.AdminAccess; import org.jclouds.ssh.SshClient; import org.jclouds.ssh.SshException; import org.jclouds.util.Strings2; -import org.testng.annotations.AfterTest; +import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeGroups; import org.testng.annotations.Test; @@ -878,7 +878,7 @@ public abstract class BaseComputeServiceLiveTest { /** * @see org.jclouds.providers.Providers#withId */ + @SuppressWarnings("unchecked") protected ProviderMetadata createProviderMetadata() { try { return (ProviderMetadata) Providers.withId(provider); @@ -107,6 +108,7 @@ public abstract class BaseContextLiveTest { /** * @see org.jclouds.apis.Apis#withId */ + @SuppressWarnings("unchecked") protected ApiMetadata createApiMetadata() { try { return (ApiMetadata) Apis.withId(provider);