@Controller(value="/") public final class TestResourcesController extends java.lang.Object implements TestResourcesResolver
TEST_RESOURCES_PROPERTY
Constructor and Description |
---|
TestResourcesController() |
Modifier and Type | Method and Description |
---|---|
void |
closeAll() |
void |
closeScope(java.lang.String id) |
java.util.List<java.lang.String> |
getRequiredProperties(java.lang.String expression)
Returns the list of properties which should be read
before resolving an expression: this can be used if the resolver
itself needs some configuration properties.
|
java.util.List<java.lang.String> |
getRequiredPropertyEntries() |
java.util.List<java.lang.String> |
getResolvableProperties() |
java.util.List<java.lang.String> |
getResolvableProperties(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> propertyEntries,
java.util.Map<java.lang.String,java.lang.Object> testResourcesConfig)
Returns the list of properties that this resolver
is able to support.
|
java.util.List<TestContainer> |
listContainers() |
java.util.List<TestContainer> |
listContainersByScope(java.lang.String scope) |
java.util.Optional<java.lang.String> |
resolve(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.util.Map<java.lang.String,java.lang.Object> testResourcesConfig)
Resolves the given property.
|
@Get(value="/list") public java.util.List<java.lang.String> getResolvableProperties()
@Post(value="/list") public java.util.List<java.lang.String> getResolvableProperties(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> propertyEntries, java.util.Map<java.lang.String,java.lang.Object> testResourcesConfig)
TestResourcesResolver
TestResourcesResolver.getRequiredPropertyEntries()
and
values are those property entries resolved.getResolvableProperties
in interface TestResourcesResolver
propertyEntries
- the property entriestestResourcesConfig
- the test resources configuration@Get(value="/requirements/expr/{expression}") public java.util.List<java.lang.String> getRequiredProperties(java.lang.String expression)
TestResourcesResolver
getRequiredProperties
in interface TestResourcesResolver
expression
- the expression which needs to be resolved.@Get(value="/requirements/entries") public java.util.List<java.lang.String> getRequiredPropertyEntries()
getRequiredPropertyEntries
in interface TestResourcesResolver
@Post(value="/resolve") public java.util.Optional<java.lang.String> resolve(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> properties, java.util.Map<java.lang.String,java.lang.Object> testResourcesConfig)
TestResourcesResolver
resolve
in interface TestResourcesResolver
name
- the property to resolveproperties
- the resolved required propertiestestResourcesConfig
- the test resources configuration@Get(value="/close/all") public void closeAll()
@Get(value="/close/{id}") public void closeScope(java.lang.String id)
@Get(value="/testcontainers") public java.util.List<TestContainer> listContainers()
@Get(value="/testcontainers/{scope}") public java.util.List<TestContainer> listContainersByScope(java.lang.String scope)