Class AssetManagerTestBase

    • Constructor Detail

      • AssetManagerTestBase

        public AssetManagerTestBase()
    • Method Detail

      • getAssetManagerClient

        protected AssetManagerClient getAssetManagerClient​(String serverName,
                                                           String serverPlatformRootURL,
                                                           AuditLog auditLog,
                                                           String testCaseName)
                                                    throws FVTUnexpectedCondition
        Create and return a asset manager client.
        Parameters:
        serverName - name of the server to connect to
        serverPlatformRootURL - the network address of the server running the OMAS REST servers
        auditLog - logging destination
        testCaseName - name of calling test case
        Returns:
        client
        Throws:
        FVTUnexpectedCondition - the test case failed
      • getGlossaryExchangeClient

        protected GlossaryExchangeClient getGlossaryExchangeClient​(String serverName,
                                                                   String serverPlatformRootURL,
                                                                   AuditLog auditLog,
                                                                   String testCaseName)
                                                            throws FVTUnexpectedCondition
        Create and return a glossary exchange client.
        Parameters:
        serverName - name of the server to connect to
        serverPlatformRootURL - the network address of the server running the OMAS REST servers
        auditLog - logging destination
        testCaseName - name of calling test case
        Returns:
        client
        Throws:
        FVTUnexpectedCondition - the test case failed
      • getAssetManager

        protected String getAssetManager​(String assetManagerName,
                                         String serverName,
                                         String serverPlatformRootURL,
                                         String userId,
                                         AuditLog auditLog,
                                         String testCaseName)
                                  throws FVTUnexpectedCondition
        Create a asset manager entity and return its GUID.
        Parameters:
        assetManagerName - name of asset manager to use
        serverName - name of the server to connect to
        serverPlatformRootURL - the network address of the server running the OMAS REST servers
        userId - calling user
        auditLog - logging destination
        testCaseName - name of calling test case
        Returns:
        unique identifier of the asset manager entity
        Throws:
        FVTUnexpectedCondition - the test case failed
      • getGlossary

        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)
                              throws FVTUnexpectedCondition
        Create a new glossary object. The identifier may be null. The glossary is retrieved and the return values tested to be sure the new element was created correctly.
        Parameters:
        client - glossary client
        testCaseName - calling test case
        activityName - calling activity within the test case
        userId - calling user
        assetManagerGUID - unique identifier of asset manager to associate the identifier with
        assetManagerName - unique name of asset manager to associate the identifier with
        glossaryName - qualified name of glossary
        glossaryDisplayName - display name for glossary
        glossaryDescription - description of glossary
        glossaryUsage - expected usage of the glossary
        glossaryLanguage - language used in the glossary
        glossaryExternalIdentifier - external identifier used in third party technology
        glossaryExternalIdentifierName - name of external identifier used in third party technology
        glossaryExternalIdentifierUsage - usage of external identifier used in third party technology
        glossaryExternalIdentifierSource - source of external identifier used in third party technology
        glossaryExternalIdentifierKeyPattern - key pattern for external identifier used in third party technology
        mappingProperties - additional mapping properties for external identifier used in third party technology
        Returns:
        unique identifier of the new glossary
        Throws:
        FVTUnexpectedCondition - error