Interface TestResourcesClient
- All Superinterfaces:
 io.micronaut.core.order.Ordered,TestResourcesResolver
- All Known Implementing Classes:
 DefaultTestResourcesClient
A client responsible for connecting to a test resources
 server.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface io.micronaut.testresources.core.TestResourcesResolver
TEST_RESOURCES_PROPERTY - 
Method Summary
Modifier and TypeMethodDescriptionbooleancloseAll()Closes all test resources.booleancloseScope(@Nullable String id) Closes a test resource scope.getRequiredProperties(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.getResolvableProperties(Map<String, Collection<String>> propertyEntries, Map<String, Object> testResourcesConfig) Returns the list of properties that this resolver is able to support.Resolves the given property.Methods inherited from interface io.micronaut.core.order.Ordered
getOrderMethods inherited from interface io.micronaut.testresources.core.TestResourcesResolver
getDisplayName, getId 
- 
Field Details
- 
ENABLED
- See Also:
 
 - 
SERVER_URI
- See Also:
 
 - 
ACCESS_TOKEN
- See Also:
 
 - 
CLIENT_READ_TIMEOUT
- See Also:
 
 
 - 
 - 
Method Details
- 
getResolvableProperties
 - 
getResolvableProperties
@Post("/list") List<String> getResolvableProperties(Map<String, Collection<String>> propertyEntries, Map<String, Object> testResourcesConfig) Description copied from interface:TestResourcesResolverReturns the list of properties that this resolver is able to support. The property entries map is a map which keys are the property entries retrieved from callingTestResourcesResolver.getRequiredPropertyEntries()and values are those property entries resolved.- Specified by:
 getResolvablePropertiesin interfaceTestResourcesResolver- Parameters:
 propertyEntries- the property entriestestResourcesConfig- the test resources configuration- Returns:
 - the list of properties
 
 - 
resolve
@Post("/resolve") Optional<String> resolve(String name, Map<String, Object> properties, Map<String, Object> testResourcesConfig) Description copied from interface:TestResourcesResolverResolves the given property.- Specified by:
 resolvein interfaceTestResourcesResolver- Parameters:
 name- the property to resolveproperties- the resolved required propertiestestResourcesConfig- the test resources configuration- Returns:
 - the resolved property or empty if not found
 
 - 
getRequiredProperties
Description copied from interface:TestResourcesResolverReturns the list of properties which should be read before resolving an expression: this can be used if the resolver itself needs some configuration properties.- Specified by:
 getRequiredPropertiesin interfaceTestResourcesResolver- Parameters:
 expression- the expression which needs to be resolved.- Returns:
 - the list of configuration properties this resolver requires
 
 - 
getRequiredPropertyEntries
- Specified by:
 getRequiredPropertyEntriesin interfaceTestResourcesResolver
 - 
closeAll
@Get("/close/all") boolean closeAll()Closes all test resources.- Returns:
 - true if the operation was successful
 
 - 
closeScope
Closes a test resource scope.- Parameters:
 id- the scope id- Returns:
 - true if the operation was successful
 
 
 -