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 * @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();

View File

@@ -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) {