From 7c294e8c55642ce4d6d3d316153964b85f7d288b Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Wed, 14 Dec 2011 21:26:18 -0800 Subject: [PATCH] made simpledb build again --- .../simpledb/SimpleDBAsyncClientTest.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sandbox-apis/simpledb/src/test/java/org/jclouds/simpledb/SimpleDBAsyncClientTest.java b/sandbox-apis/simpledb/src/test/java/org/jclouds/simpledb/SimpleDBAsyncClientTest.java index d23e33cea7..9050f1be51 100644 --- a/sandbox-apis/simpledb/src/test/java/org/jclouds/simpledb/SimpleDBAsyncClientTest.java +++ b/sandbox-apis/simpledb/src/test/java/org/jclouds/simpledb/SimpleDBAsyncClientTest.java @@ -22,9 +22,11 @@ import static org.testng.Assert.assertEquals; import java.io.IOException; import java.lang.reflect.Method; +import java.net.URI; import java.util.Map; import java.util.Properties; +import org.jclouds.aws.domain.Region; import org.jclouds.aws.filters.FormSigner; import org.jclouds.http.HttpRequest; import org.jclouds.http.RequiresHttp; @@ -40,6 +42,7 @@ import org.jclouds.simpledb.options.ListDomainsOptions; import org.jclouds.simpledb.xml.ListDomainsResponseHandler; import org.testng.annotations.Test; +import com.google.common.collect.ImmutableMap; import com.google.inject.Module; import com.google.inject.TypeLiteral; @@ -62,6 +65,19 @@ public class SimpleDBAsyncClientTest extends RestClientTest super.configure(); } + @Override + protected void bindRegionsToProvider() { + bindRegionsToProvider(Regions.class); + } + + static class Regions implements javax.inject.Provider> { + @Override + public Map get() { + return ImmutableMap. 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 {