Class StaticTestContextFactory

java.lang.Object
org.citrusframework.context.TestContextFactory
org.citrusframework.context.StaticTestContextFactory
All Implemented Interfaces:
org.citrusframework.spi.ReferenceResolverAware

public class StaticTestContextFactory extends TestContextFactory
Static test context factory always returns a single test context instance. Mainly used for unit testing.
  • Constructor Details

    • StaticTestContextFactory

      public StaticTestContextFactory(org.citrusframework.context.TestContext context)
      Constructor using test context that statically gets returned by this factory.
      Parameters:
      context -
  • Method Details

    • getObject

      public org.citrusframework.context.TestContext getObject()
      Description copied from class: TestContextFactory
      Factory method creates new test context instance and adds all default components in this factory.
      Overrides:
      getObject in class TestContextFactory
      Returns: