You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2016/02/01 18:51:54 UTC

[35/50] brooklyn-ui git commit: Delete brooklyn/util/CollectionUtils

Delete brooklyn/util/CollectionUtils


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/39e814d7
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/39e814d7
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/39e814d7

Branch: refs/heads/0.4.0
Commit: 39e814d7a5335c5666843937638e501f9588e086
Parents: f0e81a6
Author: Peter Veentjer <al...@gmail.com>
Authored: Tue Jul 17 11:07:06 2012 +0300
Committer: Peter Veentjer <al...@gmail.com>
Committed: Tue Jul 17 11:07:06 2012 +0300

----------------------------------------------------------------------
 .../brooklyn/web/console/ManagementContextServiceTest.groovy | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/39e814d7/usage/web-console/src/test/java/brooklyn/web/console/ManagementContextServiceTest.groovy
----------------------------------------------------------------------
diff --git a/usage/web-console/src/test/java/brooklyn/web/console/ManagementContextServiceTest.groovy b/usage/web-console/src/test/java/brooklyn/web/console/ManagementContextServiceTest.groovy
index 2621a3d..1f0b95f 100644
--- a/usage/web-console/src/test/java/brooklyn/web/console/ManagementContextServiceTest.groovy
+++ b/usage/web-console/src/test/java/brooklyn/web/console/ManagementContextServiceTest.groovy
@@ -4,10 +4,12 @@ import static org.testng.Assert.*
 
 import org.testng.annotations.BeforeTest
 import org.testng.annotations.Test
+import brooklyn.entity.Application
+import com.google.common.collect.ImmutableList
 
 class ManagementContextServiceTest {
 
-    def testService
+    ManagementContextService testService
 
     @BeforeTest
     protected void setUp() {
@@ -16,8 +18,8 @@ class ManagementContextServiceTest {
 
     @Test
     void testGetApplication() {
-        def apps = testService.getApplications();
+        Collection<Application> apps = testService.getApplications();
         assertEquals(1, apps.size())
-        assertEquals("Application", apps.asList().get(0).getDisplayName())
+        assertEquals("Application", ImmutableList.copyOf(apps).get(0).getDisplayName())
     }
 }
\ No newline at end of file