Class AbstractTestBoundaryContainerBuilder<T extends AbstractTestBoundaryActionContainer,S extends AbstractTestBoundaryContainerBuilder<T,S>>

java.lang.Object
org.citrusframework.AbstractTestActionBuilder<T,S>
org.citrusframework.AbstractTestContainerBuilder<T,S>
org.citrusframework.AbstractTestBoundaryContainerBuilder<T,S>
All Implemented Interfaces:
ReferenceResolverAware, TestActionBuilder<T>, TestActionContainerBuilder<T,S>
Direct Known Subclasses:
SequenceAfterTest.Builder, SequenceBeforeTest.Builder

public abstract class AbstractTestBoundaryContainerBuilder<T extends AbstractTestBoundaryActionContainer,S extends AbstractTestBoundaryContainerBuilder<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

    • AbstractTestBoundaryContainerBuilder

      public AbstractTestBoundaryContainerBuilder()
  • Method Details

    • onTests

      public S onTests(String namePattern)
      Condition on test names. The before test logic will only run when this condition matches.
      Parameters:
      namePattern -
    • 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 -
    • onPackage

      public S onPackage(String packageNamePattern)
      Condition on package names. The before test logic will only run when this condition matches.
      Parameters:
      packageNamePattern -
    • 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 AbstractTestBoundaryActionContainer>
      Overrides:
      build in class AbstractTestContainerBuilder<T extends AbstractTestBoundaryActionContainer,S extends AbstractTestBoundaryContainerBuilder<T,S>>