Java Code Examples for org.apache.flink.testutils.TestConfigUtils

The following examples show how to use org.apache.flink.testutils.TestConfigUtils. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@BeforeClass
public static void initialize() {
	try {
		testTempFolder = tempFolder.newFolder();
		// make sure we do 4 samples
		CONFIG = TestConfigUtils.loadGlobalConf(
			new String[] { OptimizerOptions.DELIMITED_FORMAT_MIN_LINE_SAMPLES.key(),
							OptimizerOptions.DELIMITED_FORMAT_MAX_LINE_SAMPLES.key() },
			new String[] { "4", "4" },
			testTempFolder);


	} catch (Throwable t) {
		Assert.fail("Could not load the global configuration.");
	}
}
 
Example 2
Source Project: flink   Source File: DelimitedInputFormatSamplingTest.java    License: Apache License 2.0 6 votes vote down vote up
@BeforeClass
public static void initialize() {
	try {
		testTempFolder = tempFolder.newFolder();
		// make sure we do 4 samples
		CONFIG = TestConfigUtils.loadGlobalConf(
			new String[] { OptimizerOptions.DELIMITED_FORMAT_MIN_LINE_SAMPLES.key(),
							OptimizerOptions.DELIMITED_FORMAT_MAX_LINE_SAMPLES.key() },
			new String[] { "4", "4" },
			testTempFolder);


	} catch (Throwable t) {
		Assert.fail("Could not load the global configuration.");
	}
}
 
Example 3
Source Project: flink   Source File: DelimitedInputFormatSamplingTest.java    License: Apache License 2.0 6 votes vote down vote up
@BeforeClass
public static void initialize() {
	try {
		testTempFolder = tempFolder.newFolder();
		// make sure we do 4 samples
		CONFIG = TestConfigUtils.loadGlobalConf(
			new String[] { OptimizerOptions.DELIMITED_FORMAT_MIN_LINE_SAMPLES.key(),
							OptimizerOptions.DELIMITED_FORMAT_MAX_LINE_SAMPLES.key() },
			new String[] { "4", "4" },
			testTempFolder);


	} catch (Throwable t) {
		Assert.fail("Could not load the global configuration.");
	}
}