Package com.symphony.api.id.testing
Class TestIdentityProvider
- java.lang.Object
-
- com.symphony.api.id.testing.TestIdentityProvider
-
public class TestIdentityProvider extends Object
Provides a symphony identity either from a system property or a file on the filesystem. System property must consist of a JSON-serializedSingleSymphonyIdentity
, with the name "symphony-test-identity". File must be called "symphony-test-identity.json" and be either in the current working directory or any ancestor.- Author:
- Rob Moffat
-
-
Field Summary
Fields Modifier and Type Field Description static String
TEST_IDENTITY_PROPERTY
-
Constructor Summary
Constructors Constructor Description TestIdentityProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SymphonyIdentity
getIdentity(String name)
static File
getSymphonyPropertiesFile(String name)
static SymphonyIdentity
getTestIdentity()
-
-
-
Field Detail
-
TEST_IDENTITY_PROPERTY
public static final String TEST_IDENTITY_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTestIdentity
public static SymphonyIdentity getTestIdentity()
-
getIdentity
public static SymphonyIdentity getIdentity(String name)
-
-