1
0

[HUDI-290] Normalize test class name of all test classes (#951)

This commit is contained in:
vinoth chandar
2019-10-22 20:19:11 -07:00
committed by GitHub
parent 031b067a3a
commit e4c91ed13f
20 changed files with 27 additions and 27 deletions

View File

@@ -30,7 +30,7 @@ import java.util.Properties;
import org.apache.hudi.config.HoodieWriteConfig.Builder; import org.apache.hudi.config.HoodieWriteConfig.Builder;
import org.junit.Test; import org.junit.Test;
public class HoodieWriteConfigTest { public class TestHoodieWriteConfig {
@Test @Test
public void testPropertyLoading() throws IOException { public void testPropertyLoading() throws IOException {

View File

@@ -40,7 +40,7 @@ import org.apache.hudi.common.util.Option;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
public class HoodieTableMetaClientTest extends HoodieCommonTestHarness { public class TestHoodieTableMetaClient extends HoodieCommonTestHarness {
@Before @Before
public void init() throws IOException { public void init() throws IOException {

View File

@@ -77,7 +77,7 @@ import org.junit.runners.Parameterized;
@SuppressWarnings("Duplicates") @SuppressWarnings("Duplicates")
@RunWith(Parameterized.class) @RunWith(Parameterized.class)
public class HoodieLogFormatTest extends HoodieCommonTestHarness { public class TestHoodieLogFormat extends HoodieCommonTestHarness {
private static String BASE_OUTPUT_PATH = "/tmp/"; private static String BASE_OUTPUT_PATH = "/tmp/";
private FileSystem fs; private FileSystem fs;
@@ -85,7 +85,7 @@ public class HoodieLogFormatTest extends HoodieCommonTestHarness {
private int bufferSize = 4096; private int bufferSize = 4096;
private Boolean readBlocksLazily = true; private Boolean readBlocksLazily = true;
public HoodieLogFormatTest(Boolean readBlocksLazily) { public TestHoodieLogFormat(Boolean readBlocksLazily) {
this.readBlocksLazily = readBlocksLazily; this.readBlocksLazily = readBlocksLazily;
} }

View File

@@ -55,7 +55,7 @@ import org.junit.Test;
* {@link MiniClusterUtil} to reproduce append() issue : https://issues.apache.org/jira/browse/HDFS-6325 Reference : * {@link MiniClusterUtil} to reproduce append() issue : https://issues.apache.org/jira/browse/HDFS-6325 Reference :
* https://issues.apache.org/jira/secure/attachment/12645053/HDFS-6325.patch * https://issues.apache.org/jira/secure/attachment/12645053/HDFS-6325.patch
*/ */
public class HoodieLogFormatAppendFailureTest { public class TestHoodieLogFormatAppendFailure {
private static File baseDir; private static File baseDir;
private static MiniDFSCluster cluster; private static MiniDFSCluster cluster;

View File

@@ -36,7 +36,7 @@ import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.rules.ExpectedException; import org.junit.rules.ExpectedException;
public class HoodieActiveTimelineTest extends HoodieCommonTestHarness { public class TestHoodieActiveTimeline extends HoodieCommonTestHarness {
private HoodieActiveTimeline timeline; private HoodieActiveTimeline timeline;
@Rule @Rule

View File

@@ -64,9 +64,9 @@ import org.junit.Before;
import org.junit.Test; import org.junit.Test;
@SuppressWarnings("ResultOfMethodCallIgnored") @SuppressWarnings("ResultOfMethodCallIgnored")
public class HoodieTableFileSystemViewTest extends HoodieCommonTestHarness { public class TestHoodieTableFileSystemView extends HoodieCommonTestHarness {
private static final transient Logger log = LogManager.getLogger(HoodieTableFileSystemViewTest.class); private static final transient Logger log = LogManager.getLogger(TestHoodieTableFileSystemView.class);
private static String TEST_WRITE_TOKEN = "1-0-1"; private static String TEST_WRITE_TOKEN = "1-0-1";

View File

@@ -69,9 +69,9 @@ import org.junit.Assert;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
public class IncrementalFSViewSyncTest extends HoodieCommonTestHarness { public class TestIncrementalFSViewSync extends HoodieCommonTestHarness {
private static final transient Logger log = LogManager.getLogger(IncrementalFSViewSyncTest.class); private static final transient Logger log = LogManager.getLogger(TestIncrementalFSViewSync.class);
private static String TEST_WRITE_TOKEN = "1-0-1"; private static String TEST_WRITE_TOKEN = "1-0-1";

View File

@@ -23,7 +23,7 @@ import org.apache.hudi.common.table.HoodieTableMetaClient;
import org.apache.hudi.common.table.HoodieTimeline; import org.apache.hudi.common.table.HoodieTimeline;
import org.apache.hudi.common.table.SyncableFileSystemView; import org.apache.hudi.common.table.SyncableFileSystemView;
public class RocksDBBasedIncrementalFSViewSyncTest extends IncrementalFSViewSyncTest { public class TestRocksDBBasedIncrementalFSViewSync extends TestIncrementalFSViewSync {
@Override @Override
protected SyncableFileSystemView getFileSystemView(HoodieTableMetaClient metaClient, HoodieTimeline timeline) protected SyncableFileSystemView getFileSystemView(HoodieTableMetaClient metaClient, HoodieTimeline timeline)

View File

@@ -22,7 +22,7 @@ import java.io.IOException;
import org.apache.hudi.common.table.HoodieTimeline; import org.apache.hudi.common.table.HoodieTimeline;
import org.apache.hudi.common.table.SyncableFileSystemView; import org.apache.hudi.common.table.SyncableFileSystemView;
public class RocksDbBasedFileSystemViewTest extends HoodieTableFileSystemViewTest { public class TestRocksDbBasedFileSystemView extends TestHoodieTableFileSystemView {
protected SyncableFileSystemView getFileSystemView(HoodieTimeline timeline) throws IOException { protected SyncableFileSystemView getFileSystemView(HoodieTimeline timeline) throws IOException {
return new RocksDbBasedFileSystemView(metaClient, timeline, return new RocksDbBasedFileSystemView(metaClient, timeline,

View File

@@ -21,7 +21,7 @@ package org.apache.hudi.common.table.view;
import org.apache.hudi.common.table.HoodieTimeline; import org.apache.hudi.common.table.HoodieTimeline;
import org.apache.hudi.common.table.SyncableFileSystemView; import org.apache.hudi.common.table.SyncableFileSystemView;
public class SpillableMapBasedFileSystemViewTest extends HoodieTableFileSystemViewTest { public class TestSpillableMapBasedFileSystemView extends TestHoodieTableFileSystemView {
protected SyncableFileSystemView getFileSystemView(HoodieTimeline timeline) { protected SyncableFileSystemView getFileSystemView(HoodieTimeline timeline) {
return new SpillableMapBasedFileSystemView(metaClient, timeline, FileSystemViewStorageConfig.newBuilder() return new SpillableMapBasedFileSystemView(metaClient, timeline, FileSystemViewStorageConfig.newBuilder()

View File

@@ -22,7 +22,7 @@ import org.apache.hudi.common.table.HoodieTableMetaClient;
import org.apache.hudi.common.table.HoodieTimeline; import org.apache.hudi.common.table.HoodieTimeline;
import org.apache.hudi.common.table.SyncableFileSystemView; import org.apache.hudi.common.table.SyncableFileSystemView;
public class SpillableMapBasedIncrementalFSViewSyncTest extends IncrementalFSViewSyncTest { public class TestSpillableMapBasedIncrementalFSViewSync extends TestIncrementalFSViewSync {
@Override @Override
protected SyncableFileSystemView getFileSystemView(HoodieTableMetaClient metaClient, HoodieTimeline timeline) { protected SyncableFileSystemView getFileSystemView(HoodieTableMetaClient metaClient, HoodieTimeline timeline) {

View File

@@ -23,7 +23,7 @@ import static org.junit.Assert.assertTrue;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import org.junit.Test; import org.junit.Test;
public class AnnotationTest { public class TestAnnotation {
@Test @Test
public void testAnnotation() { public void testAnnotation() {

View File

@@ -36,7 +36,7 @@ import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.rules.TemporaryFolder; import org.junit.rules.TemporaryFolder;
public class HoodieInputFormatTest { public class TestHoodieInputFormat {
private HoodieParquetInputFormat inputFormat; private HoodieParquetInputFormat inputFormat;
private JobConf jobConf; private JobConf jobConf;

View File

@@ -75,7 +75,7 @@ import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.rules.TemporaryFolder; import org.junit.rules.TemporaryFolder;
public class HoodieRealtimeRecordReaderTest { public class TestHoodieRealtimeRecordReader {
private static final String PARTITION_COLUMN = "datestr"; private static final String PARTITION_COLUMN = "datestr";

View File

@@ -46,12 +46,12 @@ import org.junit.runners.Parameterized;
@SuppressWarnings("ConstantConditions") @SuppressWarnings("ConstantConditions")
@RunWith(Parameterized.class) @RunWith(Parameterized.class)
public class HiveSyncToolTest { public class TestHiveSyncTool {
// Test sync tool using both jdbc and metastore client // Test sync tool using both jdbc and metastore client
private boolean useJdbc; private boolean useJdbc;
public HiveSyncToolTest(Boolean useJdbc) { public TestHiveSyncTool(Boolean useJdbc) {
this.useJdbc = useJdbc; this.useJdbc = useJdbc;
} }

View File

@@ -107,7 +107,7 @@ public class TestUtil {
hiveSyncConfig.hivePass = ""; hiveSyncConfig.hivePass = "";
hiveSyncConfig.databaseName = "testdb"; hiveSyncConfig.databaseName = "testdb";
hiveSyncConfig.tableName = "test1"; hiveSyncConfig.tableName = "test1";
hiveSyncConfig.basePath = "/tmp/hdfs/HiveSyncToolTest/"; hiveSyncConfig.basePath = "/tmp/hdfs/TestHiveSyncTool/";
hiveSyncConfig.assumeDatePartitioning = true; hiveSyncConfig.assumeDatePartitioning = true;
hiveSyncConfig.usePreApacheInputFormat = false; hiveSyncConfig.usePreApacheInputFormat = false;
hiveSyncConfig.partitionFields = Lists.newArrayList("datestr"); hiveSyncConfig.partitionFields = Lists.newArrayList("datestr");

View File

@@ -35,7 +35,7 @@ import scala.concurrent.{Await, Future}
/** /**
* Basic tests on the spark datasource * Basic tests on the spark datasource
*/ */
class DataSourceTest extends AssertionsForJUnit { class TestDataSource extends AssertionsForJUnit {
var spark: SparkSession = null var spark: SparkSession = null
var dataGen: HoodieTestDataGenerator = null var dataGen: HoodieTestDataGenerator = null

View File

@@ -26,7 +26,7 @@ import org.scalatest.junit.AssertionsForJUnit
/** /**
* Tests on the default key generator, payload classes. * Tests on the default key generator, payload classes.
*/ */
class DataSourceDefaultsTest extends AssertionsForJUnit { class TestDataSourceDefaults extends AssertionsForJUnit {
val schema = SchemaTestUtil.getComplexEvolvedSchema val schema = SchemaTestUtil.getComplexEvolvedSchema
var baseRecord: GenericRecord = null var baseRecord: GenericRecord = null

View File

@@ -24,18 +24,18 @@ import org.apache.hudi.common.table.SyncableFileSystemView;
import org.apache.hudi.common.table.view.FileSystemViewManager; import org.apache.hudi.common.table.view.FileSystemViewManager;
import org.apache.hudi.common.table.view.FileSystemViewStorageConfig; import org.apache.hudi.common.table.view.FileSystemViewStorageConfig;
import org.apache.hudi.common.table.view.FileSystemViewStorageType; import org.apache.hudi.common.table.view.FileSystemViewStorageType;
import org.apache.hudi.common.table.view.HoodieTableFileSystemViewTest;
import org.apache.hudi.common.table.view.RemoteHoodieTableFileSystemView; import org.apache.hudi.common.table.view.RemoteHoodieTableFileSystemView;
import org.apache.hudi.common.table.view.TestHoodieTableFileSystemView;
import org.apache.hudi.timeline.service.TimelineService; import org.apache.hudi.timeline.service.TimelineService;
import org.apache.log4j.LogManager; import org.apache.log4j.LogManager;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
/** /**
* Bring up a remote Timeline Server and run all test-cases of HoodieTableFileSystemViewTest against it * Bring up a remote Timeline Server and run all test-cases of TestHoodieTableFileSystemView against it
*/ */
public class RemoteHoodieTableFileSystemViewTest extends HoodieTableFileSystemViewTest { public class TestRemoteHoodieTableFileSystemView extends TestHoodieTableFileSystemView {
private static Logger log = LogManager.getLogger(RemoteHoodieTableFileSystemViewTest.class); private static Logger log = LogManager.getLogger(TestRemoteHoodieTableFileSystemView.class);
private TimelineService server; private TimelineService server;
private RemoteHoodieTableFileSystemView view; private RemoteHoodieTableFileSystemView view;

View File

@@ -27,7 +27,7 @@ import org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer;
import org.apache.hudi.utilities.deltastreamer.SchedulerConfGenerator; import org.apache.hudi.utilities.deltastreamer.SchedulerConfGenerator;
import org.junit.Test; import org.junit.Test;
public class SchedulerConfGeneratorTest { public class TestSchedulerConfGenerator {
@Test @Test
public void testGenerateSparkSchedulingConf() throws Exception { public void testGenerateSparkSchedulingConf() throws Exception {