Class AbstractDatabaseConnectingTestAction

    • Field Detail

      • log

        protected final org.slf4j.Logger log
        Logger
      • sqlResourcePath

        protected final String sqlResourcePath
        SQL file resource path
      • statements

        protected final List<String> statements
        List of SQL statements
    • Method Detail

      • execute

        public void execute​(TestContext context)
        Do basic logging and delegate execution to subclass.
        Specified by:
        execute in interface TestAction
      • doExecute

        public abstract void doExecute​(TestContext context)
        Subclasses may add custom execution logic here.
      • isDisabled

        public boolean isDisabled​(TestContext context)
        Checks if this test action is disabled. Delegates to test actor defined for this test action by default. Subclasses may add additional disabled logic here.
        Specified by:
        isDisabled in interface TestAction
        Parameters:
        context - the current test context.
        Returns:
      • createStatementsFromFileResource

        protected List<String> createStatementsFromFileResource​(TestContext context)
        Reads SQL statements from external file resource. File resource can hold several multi-line statements and comments.
        Parameters:
        context - the current test context.
        Returns:
        list of SQL statements.
      • createStatementsFromFileResource

        protected List<String> createStatementsFromFileResource​(TestContext context,
                                                                SqlUtils.LastScriptLineDecorator lineDecorator)
        Reads SQL statements from external file resource. File resource can hold several multi-line statements and comments.
        Parameters:
        context - the current test context.
        Returns:
        list of SQL statements.
      • setName

        public void setName​(String name)
        Specified by:
        setName in interface Named
      • getSqlResourcePath

        public String getSqlResourcePath()
        Gets the sqlResource.
        Returns:
        the sqlResource
      • getStatements

        public List<String> getStatements()
        Gets the statements.
        Returns:
        the statements
      • getTransactionManager

        public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
        Gets the transactionManager.
        Returns:
      • getTransactionTimeout

        public String getTransactionTimeout()
        Gets the transactionTimeout.
        Returns:
      • getTransactionIsolationLevel

        public String getTransactionIsolationLevel()
        Gets the transactionIsolationLevel.
        Returns: