> + Assert.assertEquals(resultingUri.toString(),
> + String.format("http://region%1$s.example.org/", i));
> + }
> + }
> +
> + /**
> + * Test that specifying an undefined region will return null
> + */
> + @Test
> + public void testUndefinedRegion() {
> + final KeystoneStorageEndpointModule moduleToTest = new
> KeystoneStorageEndpointModule();
> +
> + Supplier<URI> resultingSupplier =
> moduleToTest.provideStorageUrl(mockFactory, apiVersion, "region-that-dne");
> + Assert.assertNotNull(resultingSupplier);
> + URI resultingUri = resultingSupplier.get();
> + Assert.assertNull(resultingUri);
Static import `Assert.*` in all the tests?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/31/files#r4841132