public class AssetManagerTestBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
GLOSSARY_TYPE_NAME |
protected static int |
maxPageSize |
| Constructor and Description |
|---|
AssetManagerTestBase() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAssetManager(String assetManagerName,
String serverName,
String serverPlatformRootURL,
String userId,
AuditLog auditLog,
String testCaseName)
Create a asset manager entity and return its GUID.
|
protected AssetManagerClient |
getAssetManagerClient(String serverName,
String serverPlatformRootURL,
AuditLog auditLog,
String testCaseName)
Create and return a asset manager client.
|
protected String |
getGlossary(GlossaryExchangeClient client,
String testCaseName,
String activityName,
String userId,
String assetManagerGUID,
String assetManagerName,
String glossaryName,
String glossaryDisplayName,
String glossaryDescription,
String glossaryUsage,
String glossaryLanguage,
String glossaryExternalIdentifier,
String glossaryExternalIdentifierName,
String glossaryExternalIdentifierUsage,
String glossaryExternalIdentifierSource,
KeyPattern glossaryExternalIdentifierKeyPattern,
Map<String,String> mappingProperties)
Create a new glossary object.
|
protected GlossaryExchangeClient |
getGlossaryExchangeClient(String serverName,
String serverPlatformRootURL,
AuditLog auditLog,
String testCaseName)
Create and return a glossary exchange client.
|
protected void |
validateCorrelationHeader(List<MetadataCorrelationHeader> metadataCorrelationHeaders,
String testCaseName,
String activityName,
String assetManagerGUID,
String assetManagerName,
String glossaryExternalIdentifier,
String glossaryExternalIdentifierName,
String glossaryExternalIdentifierUsage,
String glossaryExternalIdentifierSource,
KeyPattern glossaryExternalIdentifierKeyPattern,
Map<String,String> mappingProperties,
int expectedNumberOfIdentifiers) |
protected void |
validateElementHeader(ElementHeader elementHeader,
String testCaseName,
String activityName,
String guid,
String typeName) |
protected void |
validateGlossaryProperties(GlossaryProperties glossaryProperties,
String testCaseName,
String activityName,
String glossaryName,
String glossaryDisplayName,
String glossaryDescription,
String glossaryUsage,
String glossaryLanguage) |
protected static final int maxPageSize
protected static final String GLOSSARY_TYPE_NAME
protected AssetManagerClient getAssetManagerClient(String serverName, String serverPlatformRootURL, AuditLog auditLog, String testCaseName) throws FVTUnexpectedCondition
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversauditLog - logging destinationtestCaseName - name of calling test caseFVTUnexpectedCondition - the test case failedprotected GlossaryExchangeClient getGlossaryExchangeClient(String serverName, String serverPlatformRootURL, AuditLog auditLog, String testCaseName) throws FVTUnexpectedCondition
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversauditLog - logging destinationtestCaseName - name of calling test caseFVTUnexpectedCondition - the test case failedprotected String getAssetManager(String assetManagerName, String serverName, String serverPlatformRootURL, String userId, AuditLog auditLog, String testCaseName) throws FVTUnexpectedCondition
assetManagerName - name of asset manager to useserverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversuserId - calling userauditLog - logging destinationtestCaseName - name of calling test caseFVTUnexpectedCondition - the test case failedprotected void validateCorrelationHeader(List<MetadataCorrelationHeader> metadataCorrelationHeaders, String testCaseName, String activityName, String assetManagerGUID, String assetManagerName, String glossaryExternalIdentifier, String glossaryExternalIdentifierName, String glossaryExternalIdentifierUsage, String glossaryExternalIdentifierSource, KeyPattern glossaryExternalIdentifierKeyPattern, Map<String,String> mappingProperties, int expectedNumberOfIdentifiers) throws FVTUnexpectedCondition
FVTUnexpectedConditionprotected void validateElementHeader(ElementHeader elementHeader, String testCaseName, String activityName, String guid, String typeName) throws FVTUnexpectedCondition
FVTUnexpectedConditionprotected void validateGlossaryProperties(GlossaryProperties glossaryProperties, String testCaseName, String activityName, String glossaryName, String glossaryDisplayName, String glossaryDescription, String glossaryUsage, String glossaryLanguage) throws FVTUnexpectedCondition
FVTUnexpectedConditionprotected String getGlossary(GlossaryExchangeClient client, String testCaseName, String activityName, String userId, String assetManagerGUID, String assetManagerName, String glossaryName, String glossaryDisplayName, String glossaryDescription, String glossaryUsage, String glossaryLanguage, String glossaryExternalIdentifier, String glossaryExternalIdentifierName, String glossaryExternalIdentifierUsage, String glossaryExternalIdentifierSource, KeyPattern glossaryExternalIdentifierKeyPattern, Map<String,String> mappingProperties) throws FVTUnexpectedCondition
client - glossary clienttestCaseName - calling test caseactivityName - calling activity within the test caseuserId - calling userassetManagerGUID - unique identifier of asset manager to associate the identifier withassetManagerName - unique name of asset manager to associate the identifier withglossaryName - qualified name of glossaryglossaryDisplayName - display name for glossaryglossaryDescription - description of glossaryglossaryUsage - expected usage of the glossaryglossaryLanguage - language used in the glossaryglossaryExternalIdentifier - external identifier used in third party technologyglossaryExternalIdentifierName - name of external identifier used in third party technologyglossaryExternalIdentifierUsage - usage of external identifier used in third party technologyglossaryExternalIdentifierSource - source of external identifier used in third party technologyglossaryExternalIdentifierKeyPattern - key pattern for external identifier used in third party technologymappingProperties - additional mapping properties for external identifier used in third party technologyFVTUnexpectedCondition - errorCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.