mirror of https://github.com/apache/jclouds.git
fixed bad test in providermetadata -my bad
This commit is contained in:
parent
f70b793533
commit
ad520b6b91
|
@ -55,12 +55,14 @@ public abstract class BaseProviderMetadataTest {
|
||||||
// it is ok to have multiple services in the same classpath (ex. ec2 vs elb)
|
// it is ok to have multiple services in the same classpath (ex. ec2 vs elb)
|
||||||
@Test
|
@Test
|
||||||
public void testOfTypeContains() {
|
public void testOfTypeContains() {
|
||||||
assert ImmutableSet.of(Providers.ofType(expectedType)).contains(toTest);
|
ImmutableSet<ProviderMetadata> ofType = ImmutableSet.copyOf(Providers.ofType(expectedType));
|
||||||
|
assert ofType.contains(toTest) : String.format("%s not found in %s", toTest, ofType);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAllContains() {
|
public void testAllContains() {
|
||||||
assert ImmutableSet.of(Providers.all()).contains(toTest);
|
ImmutableSet<ProviderMetadata> all = ImmutableSet.copyOf(Providers.all());
|
||||||
|
assert all.contains(toTest) : String.format("%s not found in %s", toTest, all);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue