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.TableValidationModegetTableValidationMode()Gets the validation mode for the validation suite.ClassgetValidationSuite(boolean isRemote)Gets the class for the validation suite.voidmessage(String message)Adds a note for the test suite.DataQualityTestCaseInterfacenewTestInstance(Database database, boolean isRemote)Create a new test case instance.booleanskipTest(DynamicTest method)Determines if the method should be skipped when executing the test suite.booleanskipTest(Method method)Determines if the method should be skipped when executing the test suite.StringtoString()
-
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:
NoSuchMethodExceptionInvocationTargetExceptionIllegalAccessExceptionInstantiationExceptionClassNotFoundException
-
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.
-