mirror of https://github.com/apache/jclouds.git
made simpledb build again
This commit is contained in:
parent
0cacd043a9
commit
7c294e8c55
|
@ -22,9 +22,11 @@ import static org.testng.Assert.assertEquals;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
import java.net.URI;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import org.jclouds.aws.domain.Region;
|
||||||
import org.jclouds.aws.filters.FormSigner;
|
import org.jclouds.aws.filters.FormSigner;
|
||||||
import org.jclouds.http.HttpRequest;
|
import org.jclouds.http.HttpRequest;
|
||||||
import org.jclouds.http.RequiresHttp;
|
import org.jclouds.http.RequiresHttp;
|
||||||
|
@ -40,6 +42,7 @@ import org.jclouds.simpledb.options.ListDomainsOptions;
|
||||||
import org.jclouds.simpledb.xml.ListDomainsResponseHandler;
|
import org.jclouds.simpledb.xml.ListDomainsResponseHandler;
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
|
import com.google.common.collect.ImmutableMap;
|
||||||
import com.google.inject.Module;
|
import com.google.inject.Module;
|
||||||
import com.google.inject.TypeLiteral;
|
import com.google.inject.TypeLiteral;
|
||||||
|
|
||||||
|
@ -62,6 +65,19 @@ public class SimpleDBAsyncClientTest extends RestClientTest<SimpleDBAsyncClient>
|
||||||
super.configure();
|
super.configure();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void bindRegionsToProvider() {
|
||||||
|
bindRegionsToProvider(Regions.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
static class Regions implements javax.inject.Provider<Map<String, URI>> {
|
||||||
|
@Override
|
||||||
|
public Map<String, URI> get() {
|
||||||
|
return ImmutableMap.<String, URI> of(Region.EU_WEST_1, URI.create("https://sdb.eu-west-1.amazonaws.com"),
|
||||||
|
Region.US_EAST_1, URI.create("https://sdb.us-east-1.amazonaws.com"), Region.US_WEST_1,
|
||||||
|
URI.create("https://sdb.us-west-1.amazonaws.com"));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testListDomainsInRegion() throws SecurityException, NoSuchMethodException, IOException {
|
public void testListDomainsInRegion() throws SecurityException, NoSuchMethodException, IOException {
|
||||||
|
|
Loading…
Reference in New Issue