Class InternalTestResourcesServiceResolver
java.lang.Object
io.micronaut.testresources.server.InternalTestResourcesServiceResolver
- All Implemented Interfaces:
- io.micronaut.core.order.Ordered,- TestResourcesResolver,- InjectableTestResourcesResolver
@Internal
@Singleton
public class InternalTestResourcesServiceResolver
extends Object
implements InjectableTestResourcesResolver
A 
TestResourcesResolver that resolves properties regarding the Test Resource Service itself,
 such as micronaut.test.resources.server.uri.- Since:
- 2.4.0
- Author:
- Álvaro Sánchez-Mariscal
- 
Field SummaryFieldsFields inherited from interface io.micronaut.core.order.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface io.micronaut.testresources.core.TestResourcesResolverTEST_RESOURCES_PROPERTY
- 
Constructor SummaryConstructorsConstructorDescriptionInternalTestResourcesServiceResolver(io.micronaut.runtime.server.EmbeddedServer server) 
- 
Method SummaryModifier and TypeMethodDescriptiongetResolvableProperties(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 class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.order.OrderedgetOrderMethods inherited from interface io.micronaut.testresources.core.TestResourcesResolvergetDisplayName, getId, getRequiredProperties, getRequiredPropertyEntries
- 
Field Details- 
SERVER_URI- See Also:
 
 
- 
- 
Constructor Details- 
InternalTestResourcesServiceResolverpublic InternalTestResourcesServiceResolver(io.micronaut.runtime.server.EmbeddedServer server) 
 
- 
- 
Method Details- 
getResolvablePropertiespublic 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 interface- TestResourcesResolver
- Parameters:
- propertyEntries- the property entries
- testResourcesConfig- the test resources configuration
- Returns:
- the list of properties
 
- 
resolvepublic Optional<String> resolve(String propertyName, Map<String, Object> properties, Map<String, Object> testResourcesConfig) Description copied from interface:TestResourcesResolverResolves the given property.- Specified by:
- resolvein interface- TestResourcesResolver
- Parameters:
- propertyName- the property to resolve
- properties- the resolved required properties
- testResourcesConfig- the test resources configuration
- Returns:
- the resolved property or empty if not found
 
 
-