public abstract class JavaProgramTestBase extends AbstractTestBase
To write a unit test against this test base, simply extend it and implement the testProgram() method.
To skip the execution against collection environments you have to override skipCollectionExecution().
TestBaseUtils.CodebaseType, TestBaseUtils.TupleComparator<T extends org.apache.flink.api.java.tuple.Tuple>miniClusterResource, TEMPORARY_FOLDERDEFAULT_AKKA_ASK_TIMEOUT, DEFAULT_AKKA_STARTUP_TIMEOUT, DEFAULT_HTTP_TIMEOUT, DEFAULT_TIMEOUT, logDir, MINIMUM_HEAP_SIZE_MB, TASK_MANAGER_MEMORY_SIZE| Constructor and Description |
|---|
JavaProgramTestBase() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobExecutionResult |
getLatestExecutionResult() |
int |
getParallelism() |
boolean |
isCollectionExecution() |
protected void |
postSubmit() |
protected void |
preSubmit() |
void |
setNumberOfTestRepetitions(int numberOfTestRepetitions) |
protected boolean |
skipCollectionExecution() |
void |
testJobCollectionExecution() |
void |
testJobWithObjectReuse() |
void |
testJobWithoutObjectReuse() |
protected abstract void |
testProgram() |
createAndRegisterTempFile, createTempFile, getTempDirPath, getTempFilePathasFile, checkLinesAgainstRegexp, compareKeyValuePairsWithDelta, compareKeyValuePairsWithDelta, compareOrderedResultAsText, compareOrderedResultAsText, compareResultAsText, compareResultAsTuples, compareResultCollections, compareResultsByLinesInMemory, compareResultsByLinesInMemory, compareResultsByLinesInMemoryWithStrictOrder, compareResultsByLinesInMemoryWithStrictOrder, constructTestPath, constructTestURI, containsResultAsText, deleteRecursively, getCodebaseType, getFromHTTP, getFromHTTP, getResultInputStream, getResultInputStream, getResultReader, getResultReader, isNewCodebase, readAllResultLines, readAllResultLines, readAllResultLines, setEnv, startCluster, startCluster, stopCluster, toParameterList, toParameterListpublic void setNumberOfTestRepetitions(int numberOfTestRepetitions)
public int getParallelism()
public org.apache.flink.api.common.JobExecutionResult getLatestExecutionResult()
public boolean isCollectionExecution()
protected boolean skipCollectionExecution()
public void testJobWithoutObjectReuse()
throws Exception
ExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.