1 10 11 package org.mmbase.bridge; 12 13 import junit.framework.*; 14 15 16 21 public class CloudContextTest extends TestCase { 22 23 public CloudContextTest(String name) { 24 super(name); 25 } 26 27 public void testListClouds() { 28 CloudContext cloudContext = ContextProvider.getDefaultCloudContext(); 29 boolean defaultCloudFound = false; 30 StringList stringList = cloudContext.getCloudNames(); 31 for (int i = 0; i < stringList.size(); i++) { 32 Cloud cloud = cloudContext.getCloud(stringList.getString(i)); 33 if (cloud.getName().equals("mmbase")) { 34 defaultCloudFound = true; 35 } 36 } 37 assertTrue(defaultCloudFound); 38 } 39 40 } 41 | Popular Tags |