refactor code
This commit is contained in:
@@ -67,7 +67,7 @@ public abstract class HoodieClientTestHarness implements Serializable {
|
|||||||
*
|
*
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public void initResourceGroupForHoodieClientTests() throws IOException {
|
public void initResources() throws IOException {
|
||||||
initTempFolderAndPath();
|
initTempFolderAndPath();
|
||||||
initSparkContexts();
|
initSparkContexts();
|
||||||
initTestDataGenerator();
|
initTestDataGenerator();
|
||||||
@@ -79,7 +79,7 @@ public abstract class HoodieClientTestHarness implements Serializable {
|
|||||||
* Cleanups resource group for the subclasses of {@link TestHoodieClientBase}.
|
* Cleanups resource group for the subclasses of {@link TestHoodieClientBase}.
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public void cleanupResourceGroupForHoodieClientTests() throws IOException {
|
public void cleanupResources() throws IOException {
|
||||||
cleanupTableType();
|
cleanupTableType();
|
||||||
cleanupSparkContexts();
|
cleanupSparkContexts();
|
||||||
cleanupTestDataGenerator();
|
cleanupTestDataGenerator();
|
||||||
|
|||||||
@@ -69,12 +69,12 @@ public class TestHoodieClientBase extends HoodieClientTestHarness {
|
|||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
initResourceGroupForHoodieClientTests();
|
initResources();
|
||||||
}
|
}
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void tearDown() throws Exception {
|
public void tearDown() throws Exception {
|
||||||
cleanupResourceGroupForHoodieClientTests();
|
cleanupResources();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected HoodieWriteClient getHoodieWriteClient(HoodieWriteConfig cfg) {
|
protected HoodieWriteClient getHoodieWriteClient(HoodieWriteConfig cfg) {
|
||||||
|
|||||||
Reference in New Issue
Block a user