Class JavaProgramTestBase


  • public abstract class JavaProgramTestBase
    extends AbstractTestBase
    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 Detail

      • JavaProgramTestBase

        public JavaProgramTestBase()
    • Method Detail

      • setNumberOfTestRepetitions

        public void setNumberOfTestRepetitions​(int numberOfTestRepetitions)
      • getParallelism

        public int getParallelism()
      • isCollectionExecution

        public boolean isCollectionExecution()
      • skipCollectionExecution

        protected boolean skipCollectionExecution()
      • testJobWithObjectReuse

        @Test
        public void testJobWithObjectReuse()
                                    throws Exception
        Throws:
        Exception
      • testJobWithoutObjectReuse

        @Test
        public void testJobWithoutObjectReuse()
                                       throws Exception
        Throws:
        Exception