Package com.illumon.iris.validation
Class TableValidationSuite
java.lang.Object
com.illumon.iris.validation.TableValidationSuite
- All Implemented Interfaces:
Serializable
public class TableValidationSuite extends Object implements Serializable
A suite of data quality tests for a table.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description List<DynamicTest>
getDynamicTests()
Gets the dynamic tests for this suite.List<String>
getMessages()
Gets notes for the test suite.TableValidationMode
getTableValidationMode()
Gets the validation mode for the validation suite.Class
getValidationSuite(boolean isRemote)
Gets the class for the validation suite.void
message(String message)
Adds a note for the test suite.DataQualityTestCaseInterface
newTestInstance(Database database, boolean isRemote)
Create a new test case instance.boolean
skipTest(DynamicTest method)
Determines if the method should be skipped when executing the test suite.boolean
skipTest(Method method)
Determines if the method should be skipped when executing the test suite.String
toString()
-
Method Details
-
getTableValidationMode
Gets the validation mode for the validation suite.- Returns:
- validation mode for the validation suite.
-
getDynamicTests
Gets the dynamic tests for this suite.- Returns:
- dynamic tests for this suite
-
message
Adds a note for the test suite.- Parameters:
message
- note for the test suite.
-
getMessages
Gets notes for the test suite.- Returns:
- notes for the test suite.
-
toString
-
getValidationSuite
Gets the class for the validation suite.- Parameters:
isRemote
- true if the test case is run remotely; false otherwise.- Throws:
ClassNotFoundException
- unable to find the validation suite class
-
newTestInstance
public DataQualityTestCaseInterface newTestInstance(Database database, boolean isRemote) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException, ClassNotFoundExceptionCreate a new test case instance. For FULL_DATABASE test, this is called remotely while the constructor is called locally.- Parameters:
database
- database to run againstisRemote
- true if the test case is run remotely; false otherwise.- Returns:
- data quality test case instance
- Throws:
NoSuchMethodException
InvocationTargetException
IllegalAccessException
InstantiationException
ClassNotFoundException
-
skipTest
Determines if the method should be skipped when executing the test suite.- Parameters:
method
- test method- Returns:
- true if the method should be skipped when executing the test suite; false otherwise.
-
skipTest
Determines if the method should be skipped when executing the test suite.- Parameters:
method
- test method- Returns:
- true if the method should be skipped when executing the test suite; false otherwise.
-