Package io.micronaut.testresources.core
Class PropertyResolverSupport
java.lang.Object
io.micronaut.testresources.core.PropertyResolverSupport
An utility class to deal with property resolution.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canResolveExpression
(io.micronaut.core.value.PropertyResolver propertyResolver, TestResourcesResolver testResourcesResolver, String expression, Map<String, Object> testProperties) Determines if a test resources resolver can resolve a particular expression.resolveRequiredProperties
(String expression, io.micronaut.core.value.PropertyResolver propertyResolver, TestResourcesResolver testResourcesResolver) Resolves the required properties for a particular test resources resolver.
-
Constructor Details
-
PropertyResolverSupport
public PropertyResolverSupport()
-
-
Method Details
-
resolveRequiredProperties
public static Map<String,Object> resolveRequiredProperties(String expression, io.micronaut.core.value.PropertyResolver propertyResolver, TestResourcesResolver testResourcesResolver) Resolves the required properties for a particular test resources resolver.- Parameters:
expression
- the expression which is being resolvedpropertyResolver
- the property resolvertestResourcesResolver
- the test resources resolver- Returns:
- the resolved properties
-
canResolveExpression
public static boolean canResolveExpression(io.micronaut.core.value.PropertyResolver propertyResolver, TestResourcesResolver testResourcesResolver, String expression, Map<String, Object> testProperties) Determines if a test resources resolver can resolve a particular expression.- Parameters:
propertyResolver
- the property resolvertestResourcesResolver
- the test resources resolverexpression
- the expressiontestProperties
- the test resources configuration map- Returns:
- the resolved property entries
-