Class AssetOwnerFactory
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetconsumer.fvt.setup.AssetOwnerFactory
-
public class AssetOwnerFactory extends Object
AssetOwnerFactory uses the Asset Owner OMAS methods to create assets and schema elements that can be used by Asset Consumer OMAS.
-
-
Constructor Summary
Constructors Constructor Description AssetOwnerFactory(String testCaseName, String serverName, String serverPlatformRootURL, AuditLog auditLog)Simple constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAsset(String userId)Create an asset and return its GUID.StringgetAssetFromTemplate(String userId, String templateGUID)Create an asset and return its GUID.StringgetSchemaType(String userId, String assetGUID)Create a schemaType and return its GUID.
-
-
-
Constructor Detail
-
AssetOwnerFactory
public AssetOwnerFactory(String testCaseName, String serverName, String serverPlatformRootURL, AuditLog auditLog) throws FVTUnexpectedCondition
Simple constructor- Parameters:
testCaseName- calling test caseserverName- server nameserverPlatformRootURL- server locationauditLog- logging destination- Throws:
FVTUnexpectedCondition- something went wrong
-
-
Method Detail
-
getAsset
public String getAsset(String userId) throws FVTUnexpectedCondition
Create an asset and return its GUID.- Parameters:
userId- calling user- Returns:
- GUID of asset
- Throws:
FVTUnexpectedCondition- the test case failed
-
getAssetFromTemplate
public String getAssetFromTemplate(String userId, String templateGUID) throws FVTUnexpectedCondition
Create an asset and return its GUID.- Parameters:
userId- calling usertemplateGUID- unique identifier of template to use- Returns:
- GUID of asset
- Throws:
FVTUnexpectedCondition- the test case failed
-
getSchemaType
public String getSchemaType(String userId, String assetGUID) throws FVTUnexpectedCondition
Create a schemaType and return its GUID.- Parameters:
userId- calling userassetGUID- unique id of the schemaType manager- Returns:
- GUID of schemaType
- Throws:
FVTUnexpectedCondition- the test case failed
-
-