Class SimpleDataQualityTestLogger
java.lang.Object
com.illumon.iris.validation.logger.SimpleDataQualityTestLogger
- All Implemented Interfaces:
DataQualityTestLogger
public class SimpleDataQualityTestLogger extends Object implements DataQualityTestLogger
Simple data quality test logger.
-
Constructor Summary
Constructors Constructor Description SimpleDataQualityTestLogger(com.fishlib.io.logger.Logger log)
-
Method Summary
Modifier and Type Method Description void
fail(TableValidationSuite suite, String method, String exception, long executionTimeMillis)
The test failed.void
finished()
All tests are finished.String
getFirstExceptionString()
Optional implementation - get the first logged failure exception Stringint
getNFailures()
Gets the number of test failures.int
getNPasses()
Gets the number of test passes.int
getNSkips()
Gets the number of test skips.void
message(TableValidationSuite suite, String method, String message)
Record a message.void
pass(TableValidationSuite suite, String method, long executionTimeMillis)
The test passed.void
skip(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:DataQualityTestLogger
The test passed.- Specified by:
pass
in 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:DataQualityTestLogger
The test failed.- Specified by:
fail
in 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:DataQualityTestLogger
The test was skipped.- Specified by:
skip
in interfaceDataQualityTestLogger
- Parameters:
suite
- configuration being tested.method
- method being tested.
-
message
Description copied from interface:DataQualityTestLogger
Record a message.- Specified by:
message
in interfaceDataQualityTestLogger
- Parameters:
suite
- configuration being tested.method
- method being tested.message
- message to record
-
finished
public void finished()Description copied from interface:DataQualityTestLogger
All tests are finished.- Specified by:
finished
in interfaceDataQualityTestLogger
-
getNFailures
public int getNFailures()Description copied from interface:DataQualityTestLogger
Gets the number of test failures.- Specified by:
getNFailures
in interfaceDataQualityTestLogger
- Returns:
- number of test failures.
-
getNPasses
public int getNPasses()Description copied from interface:DataQualityTestLogger
Gets the number of test passes.- Specified by:
getNPasses
in interfaceDataQualityTestLogger
- Returns:
- number of test passes.
-
getNSkips
public int getNSkips()Description copied from interface:DataQualityTestLogger
Gets the number of test skips.- Specified by:
getNSkips
in interfaceDataQualityTestLogger
- Returns:
- number of test skips.
-
getFirstExceptionString
Description copied from interface:DataQualityTestLogger
Optional implementation - get the first logged failure exception String- Specified by:
getFirstExceptionString
in interfaceDataQualityTestLogger
- Returns:
- a String representing the first test failure, or null
-