Class AssetOwnerFactory
java.lang.Object
org.odpi.openmetadata.accessservices.assetconsumer.fvt.AssetOwnerFactory
AssetOwnerFactory uses the Asset Owner OMAS methods to create assets and schema elements that can be used by Asset Consumer OMAS.
-
Constructor Summary
ConstructorDescriptionAssetOwnerFactory
(String testCaseName, String serverName, String serverPlatformRootURL, AuditLog auditLog) Simple constructor -
Method Summary
Modifier and TypeMethodDescriptionCreate an asset and return its GUID.getAssetFromTemplate
(String userId, String templateGUID) Create an asset and return its GUID.getSchemaType
(String userId, String assetGUID) Create a schemaType and return its GUID.
-
Constructor Details
-
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 Details
-
getAsset
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
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
-