Package com.consol.citrus
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.
@FunctionalInterface public interface TestActionBuilder<T extends TestAction>
Test action builder.- Since:
- 2.3
- Author:
- Christoph Deppisch
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTestActionBuilder.DelegatingTestActionBuilder<T extends TestAction>
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOGLoggerstatic StringRESOURCE_PATHEndpoint builder resource lookup pathstatic ResourcePathTypeResolverTYPE_RESOLVERDefault Citrus test action builders from classpath resource properties
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Tbuild()Builds new test action instance.static Map<String,TestActionBuilder<?>>lookup()Resolves all available test action builders from resource path lookup.static Optional<TestActionBuilder<?>>lookup(String builder)Resolves test action builder from resource path lookup with given resource name.
-
-
-
Field Detail
-
LOG
static final org.slf4j.Logger LOG
Logger
-
RESOURCE_PATH
static final String RESOURCE_PATH
Endpoint builder resource lookup path- See Also:
- Constant Field Values
-
TYPE_RESOLVER
static final ResourcePathTypeResolver TYPE_RESOLVER
Default Citrus test action builders from classpath resource properties
-
-
Method Detail
-
build
T build()
Builds new test action instance.- Returns:
- the built test action.
-
lookup
static Map<String,TestActionBuilder<?>> 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
static Optional<TestActionBuilder<?>> lookup(String builder)
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:
-
-