Class World


  • public class World
    extends java.lang.Object
    • Field Detail

      • TNR_BASE_DIRECTORY

        public static final java.lang.String TNR_BASE_DIRECTORY
        See Also:
        Constant Field Values
      • DEFAULT_ACCESS_CONTRACT_NAME

        public static final java.lang.String DEFAULT_ACCESS_CONTRACT_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • World

        public World()
    • Method Detail

      • init

        public void init()
                  throws java.io.IOException
        initialization of client
        Throws:
        java.io.IOException
      • the_test_are_done_on_tenant

        @Given("^les tests effectu\u00e9s sur le tenant (\\d+)$")
        public void the_test_are_done_on_tenant​(int tenantId)
                                         throws java.lang.Throwable
        define a tenant
        Parameters:
        tenantId - id of the tenant
        Throws:
        java.lang.Throwable
      • the_test_are_done_on_contract

        @Given("^les tests effectu\u00e9s sur le contrat id (.*)$")
        public void the_test_are_done_on_contract​(java.lang.String contractId)
                                           throws java.lang.Throwable
        define a contractId
        Parameters:
        contractId - id of the access contract
        Throws:
        java.lang.Throwable
      • the_tests_are_done_with_application_session_id

        @Given("^les tests effectu\u00e9s avec l\'identifiant de transaction (.*)$")
        public void the_tests_are_done_with_application_session_id​(java.lang.String applicationSessionId)
        defines application session id
        Parameters:
        applicationSessionId - id of the application session
        Throws:
        java.lang.Throwable
      • the_reinit_of_test_set

        @Given("^les jeux de tests r\u00e9initialis\u00e9s$")
        public void the_reinit_of_test_set()
        Clear the map of operations ids by testSet.
      • getTenantId

        public int getTenantId()
        Returns:
        tenant ID
      • getWorkspaceClient

        public WorkspaceClient getWorkspaceClient()
        Workspace client
        Returns:
        workspaceClient
      • getLogbookOperationsClient

        public LogbookOperationsClient getLogbookOperationsClient()
        Workspace client
        Returns:
        logbookOperationsClient
      • getStorageClient

        public StorageClient getStorageClient()
        Storage client
        Returns:
        storageClient
      • getOperationId

        public java.lang.String getOperationId()
        Returns:
        operation ID
      • setOperationId

        public void setOperationId​(java.lang.String operationId)
        Parameters:
        operationId - operation ID
      • getEliminationOperationId

        public java.lang.String getEliminationOperationId()
      • setEliminationOperationId

        public void setEliminationOperationId​(java.lang.String eliminationOperationId)
      • getQuery

        public java.lang.String getQuery()
        Returns:
        the dsl query
      • setQuery

        public void setQuery​(java.lang.String query)
        Parameters:
        query - the query
      • getOperationId

        public static java.lang.String getOperationId​(java.lang.String testSet)
        Get an operation id for the test set
        Parameters:
        testSet - test set identifier
        Returns:
        operation id
      • setOperationId

        public static void setOperationId​(java.lang.String testSet,
                                          java.lang.String operationId)
        Set an operation id for a test set
        Parameters:
        testSet - test set identifier
        operationId - operation id
      • getNamedOperationId

        public java.lang.String getNamedOperationId​(java.lang.String name)
      • setNamedOperationId

        public void setNamedOperationId​(java.lang.String name,
                                        java.lang.String namedOperationId)
      • getUnitId

        public java.lang.String getUnitId()
        Returns:
        unitId
      • setUnitId

        public void setUnitId​(java.lang.String unitId)
        Parameters:
        unitId -
      • setObjectGroupId

        public void setObjectGroupId​(java.lang.String objectGroupId)
        Parameters:
        objectGroupId -
      • getObjectGroupId

        public java.lang.String getObjectGroupId()
        Returns:
        objectGroupId
      • getContractId

        public java.lang.String getContractId()
        Returns:
        contractId
      • setContractId

        @Given("^J\'utilise le contrat d\'access (.*)$")
        public World setContractId​(java.lang.String contractId)
        Parameters:
        contractId -
        Returns:
        this
      • getApplicationSessionId

        public java.lang.String getApplicationSessionId()
      • finish

        public void finish()
      • writeOperationId

        public void writeOperationId​(cucumber.api.Scenario scenario)
        write operation ID on cucumber report
        Parameters:
        scenario -
      • getBaseDirectory

        public java.lang.String getBaseDirectory()
        Returns:
        base directory on .feature file
      • getSipFile

        public java.nio.file.Path getSipFile()
      • setSipFile

        public void setSipFile​(java.nio.file.Path path)
      • getDipFile

        public java.nio.file.Path getDipFile()
      • setDipFile

        public void setDipFile​(java.nio.file.Path dipFile)
      • getTransferFile

        public java.nio.file.Path getTransferFile()
      • setTransferFile

        public World setTransferFile​(java.nio.file.Path transferFile)
      • getAtrFile

        public java.nio.file.Path getAtrFile()
      • setAtrFile

        public World setAtrFile​(java.nio.file.Path atrFile)
      • getProjectId

        public java.lang.String getProjectId()
      • setProjectId

        public void setProjectId​(java.lang.String projectId)
      • getTransactionId

        public java.lang.String getTransactionId()
      • setTransactionId

        public void setTransactionId​(java.lang.String transactionId)