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.
  • Field Details

    • logger

      static final org.slf4j.Logger logger
      Logger
    • RESOURCE_PATH

      static final String RESOURCE_PATH
      Message validator resource lookup path
      See Also:
    • TYPE_RESOLVER

      static final TypeResolver TYPE_RESOLVER
      Type resolver to find custom SQL result set validators on classpath via resource path lookup
  • Method Details

    • 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, TestContext context) throws ValidationException
      Validates the SQL result set.
      Parameters:
      resultSet - the SQL result set.
      validationContext - the current validation context.
      context - the current test context.
      Throws:
      ValidationException
    • clearCache

      static void clearCache()
      Clears the type cache. Required when dynamically loading additional artifacts to the classpath.