JavaProgramTestBase instead.@Deprecated public abstract class JavaProgramTestBaseJUnit4 extends AbstractTestBaseJUnit4
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().
MINI_CLUSTER_RESOURCE, TEMPORARY_FOLDER| Constructor and Description |
|---|
JavaProgramTestBaseJUnit4()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobExecutionResult |
getLatestExecutionResult()
Deprecated.
|
int |
getParallelism()
Deprecated.
|
boolean |
isCollectionExecution()
Deprecated.
|
protected void |
postSubmit()
Deprecated.
|
protected void |
preSubmit()
Deprecated.
|
void |
setNumberOfTestRepetitions(int numberOfTestRepetitions)
Deprecated.
|
protected boolean |
skipCollectionExecution()
Deprecated.
|
void |
testJobCollectionExecution()
Deprecated.
|
void |
testJobWithObjectReuse()
Deprecated.
|
void |
testJobWithoutObjectReuse()
Deprecated.
|
protected abstract void |
testProgram()
Deprecated.
|
cleanupRunningJobs, createAndRegisterTempFile, createTempFile, getTempDirPath, getTempFilePathpublic void setNumberOfTestRepetitions(int numberOfTestRepetitions)
public int getParallelism()
public org.apache.flink.api.common.JobExecutionResult getLatestExecutionResult()
public boolean isCollectionExecution()
protected boolean skipCollectionExecution()
public void testJobWithObjectReuse()
throws Exception
Exceptionpublic void testJobWithoutObjectReuse()
throws Exception
ExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.