[HUDI-1418] Set up flink client unit test infra (#2281)
This commit is contained in:
@@ -35,6 +35,7 @@ import java.io.IOException;
|
||||
public class HoodieCommonTestHarness {
|
||||
|
||||
protected String basePath = null;
|
||||
protected transient HoodieTestDataGenerator dataGen = null;
|
||||
protected transient HoodieTableMetaClient metaClient;
|
||||
@TempDir
|
||||
public java.nio.file.Path tempDir;
|
||||
@@ -52,6 +53,24 @@ public class HoodieCommonTestHarness {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a test data generator which used to generate test datas.
|
||||
*
|
||||
*/
|
||||
protected void initTestDataGenerator() {
|
||||
dataGen = new HoodieTestDataGenerator();
|
||||
}
|
||||
|
||||
/**
|
||||
* Cleanups test data generator.
|
||||
*
|
||||
*/
|
||||
protected void cleanupTestDataGenerator() {
|
||||
if (dataGen != null) {
|
||||
dataGen = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes an instance of {@link HoodieTableMetaClient} with a special table type specified by
|
||||
* {@code getTableType()}.
|
||||
|
||||
Reference in New Issue
Block a user