Package io.debezium.util
Interface Testing
-
- All Known Implementing Classes:
ArraySerdesTest,DocumentSerdesTest,JacksonArrayReadingAndWritingTest,JacksonWriterTest,PathsTest,SerdeTest,TestingTest
public interface TestingA set of utility methods for test cases.- Author:
- Randall Hauch
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTesting.Debugstatic interfaceTesting.FilesFile system utility methods.static interfaceTesting.InterruptableFunctionstatic interfaceTesting.NetworkNetwork-related utility methods.static classTesting.Printstatic classTesting.Timer
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static voiddebug(Object message)default io.debezium.util.Stopwatch.Statisticsonce(Testing.InterruptableFunction runnable)default <T> io.debezium.util.Stopwatch.Statisticsonce(Callable<T> runnable, Consumer<T> cleanup)static voidprint(int length, String leader, Object message)static voidprint(Object message)static voidprintError(Object message)static voidprintError(String message, Throwable throwable)static voidprintError(Throwable throwable)default voidresetBeforeEachTest()default io.debezium.util.Stopwatch.Statisticstime(String desc, int repeat, Testing.InterruptableFunction runnable)default <T> io.debezium.util.Stopwatch.Statisticstime(String desc, int repeat, Callable<T> runnable, Consumer<T> cleanup)
-
-
-
Method Detail
-
resetBeforeEachTest
default void resetBeforeEachTest()
-
print
static void print(Object message)
-
debug
static void debug(Object message)
-
printError
static void printError(Object message)
-
printError
static void printError(Throwable throwable)
-
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
-
-