Package org.apache.flink.test.util
Class JavaProgramTestBaseJUnit4
java.lang.Object
org.apache.flink.util.TestLogger
org.apache.flink.test.util.AbstractTestBaseJUnit4
org.apache.flink.test.util.JavaProgramTestBaseJUnit4
Deprecated.
Base class for unit tests that run a single test with object reuse enabled/disabled and against
collection environments.
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().
-
Field Summary
Fields inherited from class org.apache.flink.test.util.AbstractTestBaseJUnit4
MINI_CLUSTER_RESOURCE, TEMPORARY_FOLDERFields inherited from class org.apache.flink.util.TestLogger
log, nameProvider, watchman -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.api.common.JobExecutionResultDeprecated.intDeprecated.protected voidDeprecated.protected voidDeprecated.voidsetNumberOfTestRepetitions(int numberOfTestRepetitions) Deprecated.protected booleanDeprecated.voidDeprecated.voidDeprecated.protected abstract voidDeprecated.Methods inherited from class org.apache.flink.test.util.AbstractTestBaseJUnit4
cleanupRunningJobs, createAndRegisterTempFile, createTempFile, getTempDirPath, getTempFilePath
-
Constructor Details
-
JavaProgramTestBaseJUnit4
public JavaProgramTestBaseJUnit4()Deprecated.
-
-
Method Details
-
setNumberOfTestRepetitions
public void setNumberOfTestRepetitions(int numberOfTestRepetitions) Deprecated. -
getParallelism
public int getParallelism()Deprecated. -
getLatestExecutionResult
public org.apache.flink.api.common.JobExecutionResult getLatestExecutionResult()Deprecated. -
testProgram
Deprecated.- Throws:
Exception
-
preSubmit
Deprecated.- Throws:
Exception
-
postSubmit
Deprecated.- Throws:
Exception
-
skipCollectionExecution
protected boolean skipCollectionExecution()Deprecated. -
testJobWithObjectReuse
Deprecated.- Throws:
Exception
-
testJobWithoutObjectReuse
Deprecated.- Throws:
Exception
-
JavaProgramTestBaseinstead.