Class ContractsStep

    • Field Detail

      • CONTEXT_IDENTIFIER

        public static final java.lang.String CONTEXT_IDENTIFIER
        See Also:
        Constant Field Values
      • INGEST_CONTRACT_NOT_IN_CONTEXT

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

      • ContractsStep

        public ContractsStep​(World world)
    • Method Detail

      • getModel

        public com.fasterxml.jackson.databind.JsonNode getModel()
        Returns:
        generic Model
      • getContractType

        public java.lang.String getContractType()
      • setContractType

        public void setContractType​(java.lang.String contractType)
      • setModel

        public void setModel​(com.fasterxml.jackson.databind.JsonNode model)
      • a_contract_json_named

        @Given("^un contract nomm\u00e9 (.*)$")
        public void a_contract_json_named​(java.lang.String fileName)
        define a contract json file
        Parameters:
        fileName - name of contract json file
      • upload_contract

        @Then("^j\'importe ce contrat de type (.*)")
        public void upload_contract​(java.lang.String type)
                             throws java.lang.Exception
        Use Only when the contract is not in the database
        Parameters:
        type - the type of contract
        Throws:
        java.io.IOException
        IngestExternalException
        java.lang.Exception
      • upload_contract_without_failure

        @Then("^j\'importe ce contrat sans \u00e9chec de type (.*)")
        public void upload_contract_without_failure​(java.lang.String type)
        Tentative d'import d'un contrat si jamais il n'existe pas
        Parameters:
        type -
        Throws:
        java.io.IOException
      • upload_incorrect_contract

        @Then("^j\'importe ce contrat incorrect de type (.*)")
        public void upload_incorrect_contract​(java.lang.String type)
                                       throws java.lang.Exception
        Upload a contract that will lead to an error
        Parameters:
        type - the type of contract
        Throws:
        java.io.IOException
        IngestExternalException
        java.lang.Exception
      • contract_found

        @Then("^le contrat existe$")
        public void contract_found()
      • contract_not_found

        @Then("^le contrat n\'existe pas$")
        public void contract_not_found()
      • metadata_are

        @Then("^les m\u00e9tadonn\u00e9es du contrat sont$")
        public void metadata_are​(cucumber.api.DataTable dataTable)
                          throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • verify_contrat_or_import

        @Then("^le[s]? contract[s]? (.*) de type (.*) (?:d\u00e9finie|d\u00e9finies) dans le fichier (.*)$")
        public void verify_contrat_or_import​(java.util.List<java.lang.String> contractNames,
                                             java.lang.String type,
                                             java.lang.String fileName)
                                      throws java.lang.Exception
        check if contract are imported or import them
        Parameters:
        contractNames - list of contract's name to verify
        type - contract type
        fileName - contract json file
        Throws:
        java.lang.Exception