Class SimpleDataQualityTestLogger
java.lang.Object
com.illumon.iris.validation.logger.SimpleDataQualityTestLogger
- All Implemented Interfaces:
DataQualityTestLogger
Simple data quality test logger.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfail(TableValidationSuite suite, String method, String exception, long executionTimeMillis) The test failed.voidfinished()All tests are finished.Optional implementation - get the first logged failure exception StringintGets the number of test failures.intGets the number of test passes.intGets the number of test skips.voidmessage(TableValidationSuite suite, String method, String message) Record a message.voidpass(TableValidationSuite suite, String method, long executionTimeMillis) The test passed.voidskip(TableValidationSuite suite, String method) The test was skipped.
-
Constructor Details
-
SimpleDataQualityTestLogger
public SimpleDataQualityTestLogger(com.fishlib.io.logger.Logger log)
-
-
Method Details
-
pass
Description copied from interface:DataQualityTestLoggerThe test passed.- Specified by:
passin interfaceDataQualityTestLogger- Parameters:
suite- configuration being tested.method- method being tested.executionTimeMillis- time the test took to execute.
-
fail
public void fail(TableValidationSuite suite, String method, String exception, long executionTimeMillis) Description copied from interface:DataQualityTestLoggerThe test failed.- Specified by:
failin interfaceDataQualityTestLogger- Parameters:
suite- configuration being tested.method- method being tested.exception- exception leading to the failure.executionTimeMillis- time the test took to execute.
-
skip
Description copied from interface:DataQualityTestLoggerThe test was skipped.- Specified by:
skipin interfaceDataQualityTestLogger- Parameters:
suite- configuration being tested.method- method being tested.
-
message
Description copied from interface:DataQualityTestLoggerRecord a message.- Specified by:
messagein interfaceDataQualityTestLogger- Parameters:
suite- configuration being tested.method- method being tested.message- message to record
-
finished
public void finished()Description copied from interface:DataQualityTestLoggerAll tests are finished.- Specified by:
finishedin interfaceDataQualityTestLogger
-
getNFailures
public int getNFailures()Description copied from interface:DataQualityTestLoggerGets the number of test failures.- Specified by:
getNFailuresin interfaceDataQualityTestLogger- Returns:
- number of test failures.
-
getNPasses
public int getNPasses()Description copied from interface:DataQualityTestLoggerGets the number of test passes.- Specified by:
getNPassesin interfaceDataQualityTestLogger- Returns:
- number of test passes.
-
getNSkips
public int getNSkips()Description copied from interface:DataQualityTestLoggerGets the number of test skips.- Specified by:
getNSkipsin interfaceDataQualityTestLogger- Returns:
- number of test skips.
-
getFirstExceptionString
Description copied from interface:DataQualityTestLoggerOptional implementation - get the first logged failure exception String- Specified by:
getFirstExceptionStringin interfaceDataQualityTestLogger- Returns:
- a String representing the first test failure, or null
-