Package org.citrusframework
Interface TestActionBuilder<T extends TestAction>
- All Known Subinterfaces:
TestActionBuilder.DelegatingTestActionBuilder<T>,TestActionContainerBuilder<T,S>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Test action builder.
- Since:
- 2.3
- Author:
- Christoph Deppisch
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.LoggerLoggerstatic final StringEndpoint builder resource lookup pathstatic final ResourcePathTypeResolverDefault Citrus test action builders from classpath resource properties -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds new test action instance.static Map<String,TestActionBuilder<?>> lookup()Resolves all available test action builders from resource path lookup.static Optional<TestActionBuilder<?>>Resolves test action builder from resource path lookup with given resource name.
-
Field Details
-
logger
static final org.slf4j.Logger loggerLogger -
RESOURCE_PATH
Endpoint builder resource lookup path- See Also:
-
TYPE_RESOLVER
Default Citrus test action builders from classpath resource properties
-
-
Method Details
-
build
T build()Builds new test action instance.- Returns:
- the built test action.
-
lookup
Resolves all available test action builders from resource path lookup. Scans classpath for test action builder meta information and instantiates those builders.- Returns:
-
lookup
Resolves test action builder from resource path lookup with given resource name. Scans classpath for test action builder meta information with given name and returns instance of the builder. Returns optional instead of throwing exception when no test action builder could be found. Given builder name is a combination of resource file name and type property separated by '.' character.- Parameters:
builder-- Returns:
-