1
0

refactor code

This commit is contained in:
yanghua
2019-09-12 13:02:59 +08:00
committed by vinoth chandar
parent 5f04241fce
commit 895d732a14
2 changed files with 4 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ public abstract class HoodieClientTestHarness implements Serializable {
*
* @throws IOException
*/
public void initResourceGroupForHoodieClientTests() throws IOException {
public void initResources() throws IOException {
initTempFolderAndPath();
initSparkContexts();
initTestDataGenerator();
@@ -79,7 +79,7 @@ public abstract class HoodieClientTestHarness implements Serializable {
* Cleanups resource group for the subclasses of {@link TestHoodieClientBase}.
* @throws IOException
*/
public void cleanupResourceGroupForHoodieClientTests() throws IOException {
public void cleanupResources() throws IOException {
cleanupTableType();
cleanupSparkContexts();
cleanupTestDataGenerator();

View File

@@ -69,12 +69,12 @@ public class TestHoodieClientBase extends HoodieClientTestHarness {
@Before
public void setUp() throws Exception {
initResourceGroupForHoodieClientTests();
initResources();
}
@After
public void tearDown() throws Exception {
cleanupResourceGroupForHoodieClientTests();
cleanupResources();
}
protected HoodieWriteClient getHoodieWriteClient(HoodieWriteConfig cfg) {