public interface TestResourcesClient extends TestResourcesResolver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCESS_TOKEN |
static java.lang.String |
CLIENT_READ_TIMEOUT |
static java.lang.String |
SERVER_URI |
TEST_RESOURCES_PROPERTY
Modifier and Type | Method and Description |
---|---|
void |
closeAll()
Closes all test resources.
|
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() |
default 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.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> testResourcesConfiguration)
Resolves the given property.
|
static final java.lang.String SERVER_URI
static final java.lang.String ACCESS_TOKEN
static final java.lang.String CLIENT_READ_TIMEOUT
@Get(value="/list") default java.util.List<java.lang.String> getResolvableProperties()
@Post(value="/list") 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@Post(value="/resolve") 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> testResourcesConfiguration)
TestResourcesResolver
resolve
in interface TestResourcesResolver
name
- the property to resolveproperties
- the resolved required propertiestestResourcesConfiguration
- the test resources configuration@Get(value="/requirements/expr/{expression}") 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") java.util.List<java.lang.String> getRequiredPropertyEntries()
getRequiredPropertyEntries
in interface TestResourcesResolver
@Get(value="/close/all") void closeAll()
@Get(value="/close/{id}") void closeScope(java.lang.String id)