[HUDI-290] Normalize test class name of all test classes (#951)
This commit is contained in:
@@ -30,7 +30,7 @@ import java.util.Properties;
|
||||
import org.apache.hudi.config.HoodieWriteConfig.Builder;
|
||||
import org.junit.Test;
|
||||
|
||||
public class HoodieWriteConfigTest {
|
||||
public class TestHoodieWriteConfig {
|
||||
|
||||
@Test
|
||||
public void testPropertyLoading() throws IOException {
|
||||
@@ -40,7 +40,7 @@ import org.apache.hudi.common.util.Option;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
public class HoodieTableMetaClientTest extends HoodieCommonTestHarness {
|
||||
public class TestHoodieTableMetaClient extends HoodieCommonTestHarness {
|
||||
|
||||
@Before
|
||||
public void init() throws IOException {
|
||||
@@ -77,7 +77,7 @@ import org.junit.runners.Parameterized;
|
||||
|
||||
@SuppressWarnings("Duplicates")
|
||||
@RunWith(Parameterized.class)
|
||||
public class HoodieLogFormatTest extends HoodieCommonTestHarness {
|
||||
public class TestHoodieLogFormat extends HoodieCommonTestHarness {
|
||||
|
||||
private static String BASE_OUTPUT_PATH = "/tmp/";
|
||||
private FileSystem fs;
|
||||
@@ -85,7 +85,7 @@ public class HoodieLogFormatTest extends HoodieCommonTestHarness {
|
||||
private int bufferSize = 4096;
|
||||
private Boolean readBlocksLazily = true;
|
||||
|
||||
public HoodieLogFormatTest(Boolean readBlocksLazily) {
|
||||
public TestHoodieLogFormat(Boolean readBlocksLazily) {
|
||||
this.readBlocksLazily = readBlocksLazily;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ import org.junit.Test;
|
||||
* {@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
|
||||
*/
|
||||
public class HoodieLogFormatAppendFailureTest {
|
||||
public class TestHoodieLogFormatAppendFailure {
|
||||
|
||||
private static File baseDir;
|
||||
private static MiniDFSCluster cluster;
|
||||
@@ -36,7 +36,7 @@ import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.rules.ExpectedException;
|
||||
|
||||
public class HoodieActiveTimelineTest extends HoodieCommonTestHarness {
|
||||
public class TestHoodieActiveTimeline extends HoodieCommonTestHarness {
|
||||
|
||||
private HoodieActiveTimeline timeline;
|
||||
@Rule
|
||||
@@ -64,9 +64,9 @@ import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@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";
|
||||
|
||||
@@ -69,9 +69,9 @@ import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
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";
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.apache.hudi.common.table.HoodieTableMetaClient;
|
||||
import org.apache.hudi.common.table.HoodieTimeline;
|
||||
import org.apache.hudi.common.table.SyncableFileSystemView;
|
||||
|
||||
public class RocksDBBasedIncrementalFSViewSyncTest extends IncrementalFSViewSyncTest {
|
||||
public class TestRocksDBBasedIncrementalFSViewSync extends TestIncrementalFSViewSync {
|
||||
|
||||
@Override
|
||||
protected SyncableFileSystemView getFileSystemView(HoodieTableMetaClient metaClient, HoodieTimeline timeline)
|
||||
@@ -22,7 +22,7 @@ import java.io.IOException;
|
||||
import org.apache.hudi.common.table.HoodieTimeline;
|
||||
import org.apache.hudi.common.table.SyncableFileSystemView;
|
||||
|
||||
public class RocksDbBasedFileSystemViewTest extends HoodieTableFileSystemViewTest {
|
||||
public class TestRocksDbBasedFileSystemView extends TestHoodieTableFileSystemView {
|
||||
|
||||
protected SyncableFileSystemView getFileSystemView(HoodieTimeline timeline) throws IOException {
|
||||
return new RocksDbBasedFileSystemView(metaClient, timeline,
|
||||
@@ -21,7 +21,7 @@ package org.apache.hudi.common.table.view;
|
||||
import org.apache.hudi.common.table.HoodieTimeline;
|
||||
import org.apache.hudi.common.table.SyncableFileSystemView;
|
||||
|
||||
public class SpillableMapBasedFileSystemViewTest extends HoodieTableFileSystemViewTest {
|
||||
public class TestSpillableMapBasedFileSystemView extends TestHoodieTableFileSystemView {
|
||||
|
||||
protected SyncableFileSystemView getFileSystemView(HoodieTimeline timeline) {
|
||||
return new SpillableMapBasedFileSystemView(metaClient, timeline, FileSystemViewStorageConfig.newBuilder()
|
||||
@@ -22,7 +22,7 @@ import org.apache.hudi.common.table.HoodieTableMetaClient;
|
||||
import org.apache.hudi.common.table.HoodieTimeline;
|
||||
import org.apache.hudi.common.table.SyncableFileSystemView;
|
||||
|
||||
public class SpillableMapBasedIncrementalFSViewSyncTest extends IncrementalFSViewSyncTest {
|
||||
public class TestSpillableMapBasedIncrementalFSViewSync extends TestIncrementalFSViewSync {
|
||||
|
||||
@Override
|
||||
protected SyncableFileSystemView getFileSystemView(HoodieTableMetaClient metaClient, HoodieTimeline timeline) {
|
||||
@@ -23,7 +23,7 @@ import static org.junit.Assert.assertTrue;
|
||||
import java.lang.annotation.Annotation;
|
||||
import org.junit.Test;
|
||||
|
||||
public class AnnotationTest {
|
||||
public class TestAnnotation {
|
||||
|
||||
@Test
|
||||
public void testAnnotation() {
|
||||
@@ -36,7 +36,7 @@ import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.rules.TemporaryFolder;
|
||||
|
||||
public class HoodieInputFormatTest {
|
||||
public class TestHoodieInputFormat {
|
||||
|
||||
private HoodieParquetInputFormat inputFormat;
|
||||
private JobConf jobConf;
|
||||
@@ -75,7 +75,7 @@ import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.rules.TemporaryFolder;
|
||||
|
||||
public class HoodieRealtimeRecordReaderTest {
|
||||
public class TestHoodieRealtimeRecordReader {
|
||||
|
||||
private static final String PARTITION_COLUMN = "datestr";
|
||||
|
||||
@@ -46,12 +46,12 @@ import org.junit.runners.Parameterized;
|
||||
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
@RunWith(Parameterized.class)
|
||||
public class HiveSyncToolTest {
|
||||
public class TestHiveSyncTool {
|
||||
|
||||
// Test sync tool using both jdbc and metastore client
|
||||
private boolean useJdbc;
|
||||
|
||||
public HiveSyncToolTest(Boolean useJdbc) {
|
||||
public TestHiveSyncTool(Boolean useJdbc) {
|
||||
this.useJdbc = useJdbc;
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ public class TestUtil {
|
||||
hiveSyncConfig.hivePass = "";
|
||||
hiveSyncConfig.databaseName = "testdb";
|
||||
hiveSyncConfig.tableName = "test1";
|
||||
hiveSyncConfig.basePath = "/tmp/hdfs/HiveSyncToolTest/";
|
||||
hiveSyncConfig.basePath = "/tmp/hdfs/TestHiveSyncTool/";
|
||||
hiveSyncConfig.assumeDatePartitioning = true;
|
||||
hiveSyncConfig.usePreApacheInputFormat = false;
|
||||
hiveSyncConfig.partitionFields = Lists.newArrayList("datestr");
|
||||
|
||||
@@ -35,7 +35,7 @@ import scala.concurrent.{Await, Future}
|
||||
/**
|
||||
* Basic tests on the spark datasource
|
||||
*/
|
||||
class DataSourceTest extends AssertionsForJUnit {
|
||||
class TestDataSource extends AssertionsForJUnit {
|
||||
|
||||
var spark: SparkSession = null
|
||||
var dataGen: HoodieTestDataGenerator = null
|
||||
@@ -26,7 +26,7 @@ import org.scalatest.junit.AssertionsForJUnit
|
||||
/**
|
||||
* Tests on the default key generator, payload classes.
|
||||
*/
|
||||
class DataSourceDefaultsTest extends AssertionsForJUnit {
|
||||
class TestDataSourceDefaults extends AssertionsForJUnit {
|
||||
|
||||
val schema = SchemaTestUtil.getComplexEvolvedSchema
|
||||
var baseRecord: GenericRecord = null
|
||||
@@ -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.FileSystemViewStorageConfig;
|
||||
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.TestHoodieTableFileSystemView;
|
||||
import org.apache.hudi.timeline.service.TimelineService;
|
||||
import org.apache.log4j.LogManager;
|
||||
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 RemoteHoodieTableFileSystemView view;
|
||||
@@ -27,7 +27,7 @@ import org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer;
|
||||
import org.apache.hudi.utilities.deltastreamer.SchedulerConfGenerator;
|
||||
import org.junit.Test;
|
||||
|
||||
public class SchedulerConfGeneratorTest {
|
||||
public class TestSchedulerConfGenerator {
|
||||
|
||||
@Test
|
||||
public void testGenerateSparkSchedulingConf() throws Exception {
|
||||
Reference in New Issue
Block a user