Class PropertyResolverSupport

java.lang.Object
io.micronaut.testresources.core.PropertyResolverSupport

public class PropertyResolverSupport extends Object
An utility class to deal with property resolution.
  • 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 resolved
      propertyResolver - the property resolver
      testResourcesResolver - 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 resolver
      testResourcesResolver - the test resources resolver
      expression - the expression
      testProperties - the test resources configuration map
      Returns:
      the resolved property entries