Interface SqlResultSetScriptValidator


  • public interface SqlResultSetScriptValidator
    Validator working on SQL result sets. Scripts get the actual test context and a SQL result set representation for validation.
    Author:
    Christoph Deppisch
    • Field Detail

      • LOG

        static final org.slf4j.Logger LOG
        Logger
      • TYPE_RESOLVER

        static final com.consol.citrus.spi.TypeResolver TYPE_RESOLVER
        Type resolver to find custom SQL result set validators on classpath via resource path lookup
    • Method Detail

      • lookup

        static Map<String,​SqlResultSetScriptValidator> lookup()
        Resolves all available validators from resource path lookup. Scans classpath for validator meta information and instantiates those validators.
        Returns:
      • validateSqlResultSet

        void validateSqlResultSet​(List<Map<String,​Object>> resultSet,
                                  ScriptValidationContext validationContext,
                                  com.consol.citrus.context.TestContext context)
                           throws com.consol.citrus.exceptions.ValidationException
        Validates the SQL result set.
        Parameters:
        resultSet - the SQL result set.
        validationContext - the current validation context.
        context - the current test context.
        Throws:
        com.consol.citrus.exceptions.ValidationException