Class TestRunnerBeforeSuiteSupport

  • All Implemented Interfaces:
    Described, Named, Completable, BeforeSuite, TestActionContainer, TestAction, TestActorAware, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

    public abstract class TestRunnerBeforeSuiteSupport
    extends SequenceBeforeSuite
    implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
    Adds before suite actions using Java DSL runner methods. Instances of subclasses should be added as Spring beans to application context.
    Since:
    2.6
    Author:
    Christoph Deppisch
    • Constructor Detail

      • TestRunnerBeforeSuiteSupport

        public TestRunnerBeforeSuiteSupport()
    • Method Detail

      • beforeSuite

        public abstract void beforeSuite​(TestRunner runner)
        Subclasses implement this method to add before suite logic.
        Parameters:
        runner -
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Sets the applicationContext property.
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Parameters:
        applicationContext -
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception