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.TupleComparator<T extends Tuple>
miniClusterResource, TEMPORARY_FOLDER
DEFAULT_AKKA_ASK_TIMEOUT, DEFAULT_AKKA_STARTUP_TIMEOUT, DEFAULT_HTTP_TIMEOUT, DEFAULT_TIMEOUT, logDir, MINIMUM_HEAP_SIZE_MB, TASK_MANAGER_MEMORY_SIZE
log, nameProvider, watchman
Constructor and Description |
---|
JavaProgramTestBase() |
Modifier and Type | Method and Description |
---|---|
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() |
cleanupRunningJobs, createAndRegisterTempFile, createTempFile, getTempDirPath, getTempFilePath
asFile, checkLinesAgainstRegexp, compareKeyValuePairsWithDelta, compareKeyValuePairsWithDelta, compareOrderedResultAsText, compareOrderedResultAsText, compareResultAsText, compareResultAsTuples, compareResultCollections, compareResultsByLinesInMemory, compareResultsByLinesInMemory, compareResultsByLinesInMemoryWithStrictOrder, compareResultsByLinesInMemoryWithStrictOrder, constructTestPath, constructTestURI, containsResultAsText, deleteRecursively, getFromHTTP, getFromHTTP, getResultInputStream, getResultInputStream, getResultReader, getResultReader, readAllResultLines, readAllResultLines, readAllResultLines, setEnv, toParameterList, toParameterList
public void setNumberOfTestRepetitions(int numberOfTestRepetitions)
public int getParallelism()
public JobExecutionResult getLatestExecutionResult()
public boolean isCollectionExecution()
protected boolean skipCollectionExecution()
public void testJobWithoutObjectReuse() throws Exception
Exception
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.