AbstractTestBase instead.@Deprecated public abstract class AbstractTestBaseJUnit4 extends org.apache.flink.util.TestLogger
To write a unit test against this test base, simply extend it and add one or more regular test methods and retrieve the StreamExecutionEnvironment from the context:
@Test
public void someTest() {
ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
// test code
env.execute();
}
@Test
public void anotherTest() {
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
// test code
env.execute();
}
| Modifier and Type | Field and Description |
|---|---|
static MiniClusterWithClientResource |
MINI_CLUSTER_RESOURCE
Deprecated.
|
static org.junit.rules.TemporaryFolder |
TEMPORARY_FOLDER
Deprecated.
|
| Constructor and Description |
|---|
AbstractTestBaseJUnit4()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupRunningJobs()
Deprecated.
|
File |
createAndRegisterTempFile(String fileName)
Deprecated.
|
String |
createTempFile(String fileName,
String contents)
Deprecated.
|
String |
getTempDirPath(String dirName)
Deprecated.
|
String |
getTempFilePath(String fileName)
Deprecated.
|
public static final MiniClusterWithClientResource MINI_CLUSTER_RESOURCE
public static final org.junit.rules.TemporaryFolder TEMPORARY_FOLDER
public final void cleanupRunningJobs()
throws Exception
Exceptionpublic String getTempDirPath(String dirName) throws IOException
IOExceptionpublic String getTempFilePath(String fileName) throws IOException
IOExceptionpublic String createTempFile(String fileName, String contents) throws IOException
IOExceptionpublic File createAndRegisterTempFile(String fileName) throws IOException
IOExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.