allowed regions to be unspecified so that untargetted apis can be tested

This commit is contained in:
Adrian Cole 2011-12-14 21:58:12 -08:00
parent 522d94f5ec
commit c22f5afd32
1 changed files with 1 additions and 2 deletions

View File

@ -62,8 +62,7 @@ public class RegionToEndpointOrProviderIfNullTest {
fn.apply("2"); fn.apply("2");
} }
@Test(expectedExceptions = IllegalArgumentException.class) public void testOkIfNoRegionMappings() {
public void testMustHaveEndpoints() {
new RegionToEndpointOrProviderIfNull("leader", URI.create("http://leader"), ImmutableMap.<String, URI> of()); new RegionToEndpointOrProviderIfNull("leader", URI.create("http://leader"), ImmutableMap.<String, URI> of());
} }