org.jclouds.reflect.Invokablecom.google.common.reflect.Invokable



Project jclouds/jclouds in file ...rs.BindCloneDriveOptionsToPlainTextStringTest.java (2013-01-08)
@@ -27,7 +27,7 @@ import java.util.Map;
 
 import org.jclouds.cloudsigma.options.CloneDriveOptions;
 import org.jclouds.reflect.Invocation;
-import org.jclouds.reflect.Invokable;
+import com.google.common.reflect.Invokable;
 import org.jclouds.rest.internal.GeneratedHttpRequest;
 import org.testng.annotations.Test;
 
@@ -65,7 +65,7 @@ public class BindCloneDriveOptionsToPlainTextStringTest {
    protected GeneratedHttpRequest requestForArgs(List<Object> args) {
       try {
          Invocation invocation = Invocation.create(Invokable.from(String.class.getDeclaredMethod("toString")), args);
-         return GeneratedHttpRequest.builder().method("POST").endpoint(URI.create("http://localhost/key"))
+         return GeneratedHttpRequest.builder(String.class).method("POST").endpoint(URI.create("http://localhost/key"))
                .invocation(invocation).build();
       } catch (SecurityException e) {
          throw Throwables.propagate(e);
Project jclouds/jclouds in file ...rc.test.java.org.jclouds.s3.S3AsyncClientTest.java (2013-01-08)
@@ -36,7 +36,7 @@ import org.jclouds.http.functions.ParseSax;
 import org.jclouds.http.functions.ReleasePayloadAndReturn;
 import org.jclouds.http.functions.ReturnTrueIf2xx;
 import org.jclouds.http.options.GetOptions;
-import org.jclouds.reflect.Invokable;
+import com.google.common.reflect.Invokable;
 import org.jclouds.rest.ConfiguresRestClient;
 import org.jclouds.rest.internal.GeneratedHttpRequest;
 import org.jclouds.s3.S3Fallbacks.TrueOn404OrNotFoundFalseOnIllegalState;
@@ -80,7 +80,7 @@ import com.google.inject.Module;
  */
 // NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
 @Test(groups = "unit", testName = "S3AsyncClientTest")
-public class S3AsyncClientTest<T extends S3AsyncClient> extends BaseS3AsyncClientTest<T> {
+public abstract class S3AsyncClientTest<T extends S3AsyncClient> extends BaseS3AsyncClientTest<T> {
 
    protected String url = "s3.amazonaws.com";
 
Project jclouds/jclouds in file ...abiquo.binders.cloud.BindMoveVolumeToPathTest.java (2013-01-08)
@@ -34,7 +34,7 @@ import org.testng.annotations.Test;
 import com.abiquo.server.core.cloud.VirtualDatacenterDto;
 import com.abiquo.server.core.infrastructure.storage.VolumeManagementDto;
 import com.google.common.collect.ImmutableList;
-import org.jclouds.reflect.Invokable;
+import com.google.common.reflect.Invokable;
 
 /**
  * Unit tests for the {@link BindMoveVolumeToPath} binder.
@@ -64,7 +64,7 @@ public class BindMoveVolumeToPathTest {
    private static GeneratedHttpRequest generatedHttpRequest() throws SecurityException, NoSuchMethodException {
       Invokable<?, ?> withEndpointLink = Invokable.from(CloudAsyncApi.class.getMethod("moveVolume", VolumeManagementDto.class,
             VirtualDatacenterDto.class));
-      return GeneratedHttpRequest.builder()
+      return GeneratedHttpRequest.builder(CloudAsyncApi.class)
             .invocation(Invocation.create(withEndpointLink, ImmutableList.<Object> of(CloudResources.volumePut(), CloudResources.virtualDatacenterPut())))
             .method(HttpMethod.POST).endpoint(URI.create("http://localhost")).build();
    }
Project jclouds/legacy-jclouds in file ...rs.BindCloneDriveOptionsToPlainTextStringTest.java (2013-01-08)
@@ -27,7 +27,7 @@ import java.util.Map;
 
 import org.jclouds.cloudsigma.options.CloneDriveOptions;
 import org.jclouds.reflect.Invocation;
-import org.jclouds.reflect.Invokable;
+import com.google.common.reflect.Invokable;
 import org.jclouds.rest.internal.GeneratedHttpRequest;
 import org.testng.annotations.Test;
 
@@ -65,7 +65,7 @@ public class BindCloneDriveOptionsToPlainTextStringTest {
    protected GeneratedHttpRequest requestForArgs(List<Object> args) {
       try {
          Invocation invocation = Invocation.create(Invokable.from(String.class.getDeclaredMethod("toString")), args);
-         return GeneratedHttpRequest.builder().method("POST").endpoint(URI.create("http://localhost/key"))
+         return GeneratedHttpRequest.builder(String.class).method("POST").endpoint(URI.create("http://localhost/key"))
                .invocation(invocation).build();
       } catch (SecurityException e) {
          throw Throwables.propagate(e);
Project jclouds/legacy-jclouds in file ...rc.test.java.org.jclouds.s3.S3AsyncClientTest.java (2013-01-08)
@@ -36,7 +36,7 @@ import org.jclouds.http.functions.ParseSax;
 import org.jclouds.http.functions.ReleasePayloadAndReturn;
 import org.jclouds.http.functions.ReturnTrueIf2xx;
 import org.jclouds.http.options.GetOptions;
-import org.jclouds.reflect.Invokable;
+import com.google.common.reflect.Invokable;
 import org.jclouds.rest.ConfiguresRestClient;
 import org.jclouds.rest.internal.GeneratedHttpRequest;
 import org.jclouds.s3.S3Fallbacks.TrueOn404OrNotFoundFalseOnIllegalState;
@@ -80,7 +80,7 @@ import com.google.inject.Module;
  */
 // NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
 @Test(groups = "unit", testName = "S3AsyncClientTest")
-public class S3AsyncClientTest<T extends S3AsyncClient> extends BaseS3AsyncClientTest<T> {
+public abstract class S3AsyncClientTest<T extends S3AsyncClient> extends BaseS3AsyncClientTest<T> {
 
    protected String url = "s3.amazonaws.com";