Package org.citrusframework.context
Class StaticTestContextFactory
java.lang.Object
org.citrusframework.context.TestContextFactory
org.citrusframework.context.StaticTestContextFactory
- All Implemented Interfaces:
ReferenceResolverAware
Static test context factory always returns a single test context instance.
Mainly used for unit testing.
-
Constructor Summary
ConstructorsConstructorDescriptionStaticTestContextFactory(TestContext context) Constructor using test context that statically gets returned by this factory. -
Method Summary
Modifier and TypeMethodDescriptionFactory method creates new test context instance and adds all default components in this factory.Methods inherited from class org.citrusframework.context.TestContextFactory
copyOf, getAfterTest, getBeforeTest, getEndpointFactory, getFunctionRegistry, getGlobalVariables, getLogModifier, getMessageListeners, getMessageProcessors, getMessageValidatorRegistry, getNamespaceContextBuilder, getReferenceResolver, getSegmentVariableExtractorRegistry, getTestActionListeners, getTestListeners, getTypeConverter, getValidationMatcherRegistry, newInstance, setAfterTest, setBeforeTest, setEndpointFactory, setFunctionRegistry, setGlobalVariables, setLogModifier, setMessageListeners, setMessageProcessors, setMessageValidatorRegistry, setNamespaceContextBuilder, setReferenceResolver, setSegmentVariableExtractorRegistry, setTestActionListeners, setTestListeners, setTypeConverter, setValidationMatcherRegistry
-
Constructor Details
-
StaticTestContextFactory
Constructor using test context that statically gets returned by this factory.- Parameters:
context-
-
-
Method Details
-
getObject
Description copied from class:TestContextFactoryFactory method creates new test context instance and adds all default components in this factory.- Overrides:
getObjectin classTestContextFactory- Returns:
-