public class R2DBCPoolTestResourceProvider extends java.lang.Object implements TestResourcesResolver
TEST_RESOURCES_PROPERTY| Constructor and Description |
|---|
R2DBCPoolTestResourceProvider() |
| Modifier and Type | Method and Description |
|---|---|
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() |
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 propertyName,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.util.Map<java.lang.String,java.lang.Object> testResourcesConfiguration)
Resolves the given property.
|
public java.util.List<java.lang.String> getRequiredPropertyEntries()
getRequiredPropertyEntries in interface TestResourcesResolverpublic java.util.List<java.lang.String> getRequiredProperties(java.lang.String expression)
TestResourcesResolvergetRequiredProperties in interface TestResourcesResolverexpression - the expression which needs to be resolved.public 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)
TestResourcesResolverTestResourcesResolver.getRequiredPropertyEntries() and
values are those property entries resolved.getResolvableProperties in interface TestResourcesResolverpropertyEntries - the property entriestestResourcesConfig - the test resources configurationpublic java.util.Optional<java.lang.String> resolve(java.lang.String propertyName,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.util.Map<java.lang.String,java.lang.Object> testResourcesConfiguration)
TestResourcesResolverresolve in interface TestResourcesResolverpropertyName - the property to resolveproperties - the resolved required propertiestestResourcesConfiguration - the test resources configuration