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 Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.LoggerLoggerstatic final StringMessage validator resource lookup pathstatic final TypeResolverType resolver to find custom SQL result set validators on classpath via resource path lookup -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String,SqlResultSetScriptValidator> lookup()Resolves all available validators from resource path lookup.voidvalidateSqlResultSet(List<Map<String, Object>> resultSet, ScriptValidationContext validationContext, TestContext context) Validates the SQL result set.
-
Field Details
-
logger
static final org.slf4j.Logger loggerLogger -
RESOURCE_PATH
Message validator resource lookup path- See Also:
-
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 ValidationExceptionValidates the SQL result set.- Parameters:
resultSet- the SQL result set.validationContext- the current validation context.context- the current test context.- Throws:
ValidationException
-