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:
  • Method Details

    • getTableValidationMode

      public TableValidationMode getTableValidationMode()
      Gets the validation mode for the validation suite.
      Returns:
      validation mode for the validation suite.
    • getDynamicTests

      public List<DynamicTest> getDynamicTests()
      Gets the dynamic tests for this suite.
      Returns:
      dynamic tests for this suite
    • message

      public void message(String message)
      Adds a note for the test suite.
      Parameters:
      message - note for the test suite.
    • getMessages

      public List<String> getMessages()
      Gets notes for the test suite.
      Returns:
      notes for the test suite.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getValidationSuite

      public Class getValidationSuite(boolean isRemote) throws ClassNotFoundException
      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

      Create a new test case instance. For FULL_DATABASE test, this is called remotely while the constructor is called locally.
      Parameters:
      database - database to run against
      isRemote - true if the test case is run remotely; false otherwise.
      Returns:
      data quality test case instance
      Throws:
      NoSuchMethodException
      InvocationTargetException
      IllegalAccessException
      InstantiationException
      ClassNotFoundException
    • skipTest

      public boolean skipTest(Method method)
      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

      public boolean skipTest(DynamicTest method)
      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.