public abstract class AbstractTestBase extends TestBaseUtils
TestBaseUtils.TupleComparator<T extends Tuple>
Modifier and Type | Field and Description |
---|---|
protected Configuration |
config
Configuration to start the testing cluster with
|
protected ForkableFlinkMiniCluster |
executor
The mini cluster that runs the test programs
|
protected int |
numTaskManagers |
protected int |
taskManagerNumSlots |
DEFAULT_AKKA_ASK_TIMEOUT, DEFAULT_AKKA_STARTUP_TIMEOUT, DEFAULT_TIMEOUT, logDir, MINIMUM_HEAP_SIZE_MB, TASK_MANAGER_MEMORY_SIZE
Constructor and Description |
---|
AbstractTestBase(Configuration config) |
Modifier and Type | Method and Description |
---|---|
File |
createAndRegisterTempFile(String fileName) |
String |
createTempFile(String fileName,
String contents) |
int |
getNumTaskManagers() |
int |
getTaskManagerNumSlots() |
String |
getTempDirPath(String dirName) |
String |
getTempFilePath(String fileName) |
void |
setNumTaskManagers(int numTaskManagers) |
void |
setTaskManagerNumSlots(int taskManagerNumSlots) |
void |
startCluster() |
void |
stopCluster() |
asFile, checkLinesAgainstRegexp, compareKeyValuePairsWithDelta, compareKeyValuePairsWithDelta, compareResultAsText, compareResultAsTuples, compareResultCollections, compareResultsByLinesInMemory, compareResultsByLinesInMemory, compareResultsByLinesInMemoryWithStrictOrder, compareResultsByLinesInMemoryWithStrictOrder, constructTestPath, constructTestURI, containsResultAsText, deleteRecursively, getFromHTTP, getResultInputStream, getResultInputStream, getResultReader, getResultReader, readAllResultLines, readAllResultLines, readAllResultLines, setEnv, startCluster, startCluster, stopCluster, toParameterList, toParameterList
protected final Configuration config
protected int taskManagerNumSlots
protected int numTaskManagers
protected ForkableFlinkMiniCluster executor
public AbstractTestBase(Configuration config)
public int getTaskManagerNumSlots()
public void setTaskManagerNumSlots(int taskManagerNumSlots)
public int getNumTaskManagers()
public void setNumTaskManagers(int numTaskManagers)
public String getTempDirPath(String dirName) throws IOException
IOException
public String getTempFilePath(String fileName) throws IOException
IOException
public String createTempFile(String fileName, String contents) throws IOException
IOException
public File createAndRegisterTempFile(String fileName) throws IOException
IOException
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.