From ad520b6b91d0736d447c27e5722475f817822bad Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Tue, 17 May 2011 14:46:03 -0700 Subject: [PATCH] fixed bad test in providermetadata -my bad --- .../org/jclouds/providers/BaseProviderMetadataTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/org/jclouds/providers/BaseProviderMetadataTest.java b/core/src/test/java/org/jclouds/providers/BaseProviderMetadataTest.java index 96abc65913..1ee8f73553 100644 --- a/core/src/test/java/org/jclouds/providers/BaseProviderMetadataTest.java +++ b/core/src/test/java/org/jclouds/providers/BaseProviderMetadataTest.java @@ -55,12 +55,14 @@ public abstract class BaseProviderMetadataTest { // it is ok to have multiple services in the same classpath (ex. ec2 vs elb) @Test public void testOfTypeContains() { - assert ImmutableSet.of(Providers.ofType(expectedType)).contains(toTest); + ImmutableSet ofType = ImmutableSet.copyOf(Providers.ofType(expectedType)); + assert ofType.contains(toTest) : String.format("%s not found in %s", toTest, ofType); } @Test public void testAllContains() { - assert ImmutableSet.of(Providers.all()).contains(toTest); + ImmutableSet all = ImmutableSet.copyOf(Providers.all()); + assert all.contains(toTest) : String.format("%s not found in %s", toTest, all); } @Test