import org.junit.Assert;\r
import org.junit.Test;\r
\r
+/**\r
+ * This class tests the service catalog factory against a known provider.\r
+ */\r
public class TestServiceCatalogFactory {\r
\r
@Test\r
\r
Assert.assertNull(catalog);\r
}\r
+\r
+ @Test\r
+ public void testGetServiceCatalogEmptyURL() {\r
+ String url = null;\r
+ String tenantIdentifier = null;\r
+ String principal = null;\r
+ String credential = null;\r
+ String domain = null;\r
+ Properties properties = null;\r
+ ServiceCatalog catalog = ServiceCatalogFactory.getServiceCatalog(url, tenantIdentifier, principal, credential,\r
+ domain, properties);\r
+\r
+ Assert.assertNull(catalog);\r
+ }\r
+\r
+ @Test\r
+ public void testGetServiceCatalogWithoutVersion() {\r
+ String url = "http://192.168.1.1:5000/";\r
+ String tenantIdentifier = null;\r
+ String principal = null;\r
+ String credential = null;\r
+ String domain = null;\r
+ Properties properties = null;\r
+ ServiceCatalog catalog = ServiceCatalogFactory.getServiceCatalog(url, tenantIdentifier, principal, credential,\r
+ domain, properties);\r
+\r
+ Assert.assertNull(catalog);\r
+ }\r
+\r
}\r