From 0666a6fbdebbe84a1fde3e0f001f68bb32d94e58 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Sun, 12 Aug 2012 10:00:17 -0700 Subject: [PATCH] fixed broken test --- ...ionNamespaceEqualsAnyNamespaceInExtensionsSetTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/functions/PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSetTest.java b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/functions/PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSetTest.java index 37228b8bf8..60f56cdbb8 100644 --- a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/functions/PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSetTest.java +++ b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/functions/PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSetTest.java @@ -32,7 +32,7 @@ import com.google.inject.Provides; /** * @author Adrian Cole */ -@Test(groups = "unit", singleThreaded = true, testName = "PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSetTest") +@Test(groups = "unit", testName = "PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSetTest") public class PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSetTest { Extension keypairs = Extension.builder().alias("os-keypairs").name("Keypairs").namespace( @@ -119,8 +119,8 @@ public class PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensio private PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSet whenExtensionsAndAliasesInclude( final Set extensions, final Multimap aliases) { - final LoadingCache> extensionsForZone = CacheBuilder.newBuilder().build( - CacheLoader.from(Functions.forMap(ImmutableMap.of("expectedzone", extensions, "differentzone", + final LoadingCache> extensionsForZone = CacheBuilder.newBuilder().build( + CacheLoader.from(Functions.forMap(ImmutableMap.>of("expectedzone", extensions, "differentzone", ImmutableSet. of())))); PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSet fn = Guice.createInjector( @@ -130,7 +130,7 @@ public class PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensio } @Provides - LoadingCache> getExtensions() { + LoadingCache> getExtensions() { return extensionsForZone; }