Package org.duracloud.common.test
Class TestConfigUtil
- java.lang.Object
-
- org.duracloud.common.test.TestConfigUtil
-
public class TestConfigUtil extends Object
Provides access to test configuration. Assumes that: 1. There is a system property named: DURACLOUD_TEST_CONFIG 2. The value of that system property is the full path to a valid test configuration file in JSON format- Author:
- Bill Branan Date: 7/31/13
-
-
Field Summary
Fields Modifier and Type Field Description static StringDURACLOUD_TEST_CONFIG
-
Constructor Summary
Constructors Constructor Description TestConfigUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleCredentialgetCredential(StorageProviderCredential.ProviderType type)StringgetSwiftEndpoint()StringgetSwiftSignerType()TestConfiggetTestConfig()
-
-
-
Field Detail
-
DURACLOUD_TEST_CONFIG
public static final String DURACLOUD_TEST_CONFIG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTestConfig
public TestConfig getTestConfig() throws IOException
- Throws:
IOException
-
getCredential
public SimpleCredential getCredential(StorageProviderCredential.ProviderType type) throws IOException
- Throws:
IOException
-
getSwiftEndpoint
public String getSwiftEndpoint() throws IOException
- Throws:
IOException
-
getSwiftSignerType
public String getSwiftSignerType() throws IOException
- Throws:
IOException
-
-