Package io.debezium.util
Interface Testing
- All Known Implementing Classes:
ArraySerdesTest,DocumentSerdesTest,JacksonArrayReadingAndWritingTest,JacksonWriterTest,PathsTest,SerdeTest,TestingTest
public interface Testing
A set of utility methods for test cases.
- Author:
- Randall Hauch
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic interfaceFile system utility methods.static interfacestatic interfaceNetwork-related utility methods.static final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddefault io.debezium.util.Stopwatch.Statisticsonce(Testing.InterruptableFunction runnable) default <T> io.debezium.util.Stopwatch.Statisticsstatic voidstatic voidstatic voidprintError(Object message) static voidprintError(String message, Throwable throwable) static voidprintError(Throwable throwable) default voiddefault io.debezium.util.Stopwatch.Statisticstime(String desc, int repeat, Testing.InterruptableFunction runnable) default <T> io.debezium.util.Stopwatch.Statistics
-
Method Details
-
resetBeforeEachTest
default void resetBeforeEachTest() -
print
-
print
-
debug
-
printError
-
printError
-
printError
-
once
default io.debezium.util.Stopwatch.Statistics once(Testing.InterruptableFunction runnable) throws InterruptedException - Throws:
InterruptedException
-
once
default <T> io.debezium.util.Stopwatch.Statistics once(Callable<T> runnable, Consumer<T> cleanup) throws InterruptedException - Throws:
InterruptedException
-
time
default io.debezium.util.Stopwatch.Statistics time(String desc, int repeat, Testing.InterruptableFunction runnable) throws InterruptedException - Throws:
InterruptedException
-
time
default <T> io.debezium.util.Stopwatch.Statistics time(String desc, int repeat, Callable<T> runnable, Consumer<T> cleanup) throws InterruptedException - Throws:
InterruptedException
-