Class AbstractSuiteContainerBuilder<T extends AbstractSuiteActionContainer,S extends AbstractSuiteContainerBuilder<T,S>>

All Implemented Interfaces:
ReferenceResolverAware, TestActionBuilder<T>, TestActionContainerBuilder<T,S>
Direct Known Subclasses:
SequenceAfterSuite.Builder, SequenceBeforeSuite.Builder

public abstract class AbstractSuiteContainerBuilder<T extends AbstractSuiteActionContainer,S extends AbstractSuiteContainerBuilder<T,S>> extends AbstractTestContainerBuilder<T,S>
Abstract container builder takes care on calling the container runner when actions are placed in the container.
  • Constructor Details

    • AbstractSuiteContainerBuilder

      public AbstractSuiteContainerBuilder()
  • Method Details

    • onSuite

      public S onSuite(String... suiteNames)
      Condition on suite name. The before test logic will only run when this condition matches.
      Parameters:
      suiteNames -
    • onSuites

      public S onSuites(List<String> suiteNames)
      Condition on suite names. The before test logic will only run when this condition matches.
      Parameters:
      suiteNames -
    • onTestGroup

      public S onTestGroup(String... testGroups)
      Condition on test group name. The before test logic will only run when this condition matches.
      Parameters:
      testGroups -
    • onTestGroups

      public S onTestGroups(List<String> testGroups)
      Condition on test group names. The before test logic will only run when this condition matches.
      Parameters:
      testGroups -
    • whenSystemProperty

      public S whenSystemProperty(String name, String value)
      Condition on system property with value. The before test logic will only run when this condition matches.
      Parameters:
      name -
      value -
    • whenSystemProperties

      public S whenSystemProperties(Map<String,String> systemProperties)
      Condition on system properties. The before test logic will only run when this condition matches.
      Parameters:
      systemProperties -
    • whenEnv

      public S whenEnv(String name, String value)
      Condition on environment variable with value. The before test logic will only run when this condition matches.
      Parameters:
      name -
      value -
    • whenEnv

      public S whenEnv(Map<String,String> envs)
      Condition on environment variables. The before test logic will only run when this condition matches.
      Parameters:
      envs -
    • build

      public T build()
      Specified by:
      build in interface TestActionBuilder<T extends AbstractSuiteActionContainer>
      Overrides:
      build in class AbstractTestContainerBuilder<T extends AbstractSuiteActionContainer,S extends AbstractSuiteContainerBuilder<T,S>>