made simpledb build again

This commit is contained in:
Adrian Cole 2011-12-14 21:26:18 -08:00
parent 0cacd043a9
commit 7c294e8c55
1 changed files with 16 additions and 0 deletions

View File

@ -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<SimpleDBAsyncClient>
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 {