Class JavaProgramTestBaseJUnit4

java.lang.Object
org.apache.flink.util.TestLogger
org.apache.flink.test.util.AbstractTestBaseJUnit4
org.apache.flink.test.util.JavaProgramTestBaseJUnit4

@Deprecated public abstract class JavaProgramTestBaseJUnit4 extends AbstractTestBaseJUnit4
Deprecated.
Use JavaProgramTestBase instead.
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().

  • 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

      protected abstract void testProgram() throws Exception
      Deprecated.
      Throws:
      Exception
    • preSubmit

      protected void preSubmit() throws Exception
      Deprecated.
      Throws:
      Exception
    • postSubmit

      protected void postSubmit() throws Exception
      Deprecated.
      Throws:
      Exception
    • skipCollectionExecution

      protected boolean skipCollectionExecution()
      Deprecated.
    • testJobWithObjectReuse

      public void testJobWithObjectReuse() throws Exception
      Deprecated.
      Throws:
      Exception
    • testJobWithoutObjectReuse

      public void testJobWithoutObjectReuse() throws Exception
      Deprecated.
      Throws:
      Exception