diff --git a/gogrid/src/test/java/org/jclouds/gogrid/PropertiesTest.java b/gogrid/src/test/java/org/jclouds/gogrid/PropertiesTest.java new file mode 100644 index 0000000000..bf348663ae --- /dev/null +++ b/gogrid/src/test/java/org/jclouds/gogrid/PropertiesTest.java @@ -0,0 +1,53 @@ +/** + * + * Copyright (C) 2010 Cloud Conscious, LLC. + * + * ==================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + */ +package org.jclouds.gogrid; + +import com.google.common.io.Resources; +import org.testng.annotations.BeforeTest; +import org.testng.annotations.Test; + +import java.io.IOException; +import java.util.Properties; + +import static org.testng.Assert.assertEquals; + +/** + * @author Adrian Cole + * @author Oleksiy Yarmula + */ +@Test(groups = "unit", testName = "compute.PropertiesTest") +public class PropertiesTest { + private Properties properties; + + @BeforeTest + public void setUp() throws IOException { + properties = new Properties(); + properties.load(Resources.newInputStreamSupplier(Resources.getResource("compute.properties")) + .getInput()); + } + + public void testGoGrid() { + assertEquals(properties.getProperty("gogrid.contextbuilder"), + GoGridContextBuilder.class.getName()); + assertEquals(properties.getProperty("gogrid.propertiesbuilder"), + GoGridPropertiesBuilder.class.getName()); + } + + +}