Class R2DBCOracleXETestResourceProvider
java.lang.Object
io.micronaut.testresources.testcontainers.AbstractTestContainersProvider<T>
io.micronaut.testresources.r2dbc.core.AbstractR2DBCTestResourceProvider<org.testcontainers.containers.OracleContainer>
io.micronaut.testresources.r2dbc.oracle.R2DBCOracleXETestResourceProvider
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,TestResourcesResolver
,ToggableTestResourcesResolver
@Deprecated(since="2.4.0",
forRemoval=true)
public class R2DBCOracleXETestResourceProvider
extends AbstractR2DBCTestResourceProvider<org.testcontainers.containers.OracleContainer>
Deprecated, for removal: This API element is subject to removal in a future version.
A test resource provider which will spawn an Oracle XE reactive test container.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated, for removal: This API element is subject to removal in a future version.Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Fields inherited from interface io.micronaut.testresources.core.TestResourcesResolver
TEST_RESOURCES_PROPERTY
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.testcontainers.containers.OracleContainer
createContainer
(org.testcontainers.utility.DockerImageName imageName, Map<String, Object> requestedProperties, Map<String, Object> testResourcesConfig) Deprecated, for removal: This API element is subject to removal in a future version.Creates the test container.protected Optional<io.r2dbc.spi.ConnectionFactoryOptions>
extractOptions
(org.testcontainers.containers.GenericContainer<?> container) Deprecated, for removal: This API element is subject to removal in a future version.protected String
Deprecated, for removal: This API element is subject to removal in a future version.Returns the default image name.Deprecated, for removal: This API element is subject to removal in a future version.Returns a display name for a test resources resolver, used for debugging purposes.getRequiredProperties
(String expression) Deprecated, for removal: This API element is subject to removal in a future version.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.protected String
Deprecated, for removal: This API element is subject to removal in a future version.Returns the name of the resource resolver, for example "kafka" or "mysql".protected boolean
shouldAnswer
(String propertyName, Map<String, Object> requestedProperties, Map<String, Object> testResourcesConfig) Deprecated, for removal: This API element is subject to removal in a future version.Determines if this resolver can resolve the requested property.Methods inherited from class io.micronaut.testresources.r2dbc.core.AbstractR2DBCTestResourceProvider
getDbTypes, getRequiredPropertyEntries, getResolvableProperties, resolveProperty, resolveWithoutContainer
Methods inherited from class io.micronaut.testresources.testcontainers.AbstractTestContainersProvider
configureContainer, getName, getOrder, resolve, stringOrNull
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.testresources.core.TestResourcesResolver
getId
Methods inherited from interface io.micronaut.testresources.core.ToggableTestResourcesResolver
isEnabled
-
Field Details
-
DISPLAY_NAME
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
R2DBCOracleXETestResourceProvider
public R2DBCOracleXETestResourceProvider()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getRequiredProperties
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TestResourcesResolver
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.- Specified by:
getRequiredProperties
in interfaceTestResourcesResolver
- Overrides:
getRequiredProperties
in classAbstractR2DBCTestResourceProvider<org.testcontainers.containers.OracleContainer>
- Parameters:
expression
- the expression which needs to be resolved.- Returns:
- the list of configuration properties this resolver requires
-
shouldAnswer
protected boolean shouldAnswer(String propertyName, Map<String, Object> requestedProperties, Map<String, Object> testResourcesConfig) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractTestContainersProvider
Determines if this resolver can resolve the requested property. It is used in order to make sure that a "Postgres" resolver wouldn't provide a value if the requested container type is for MySQL, for example.- Overrides:
shouldAnswer
in classAbstractR2DBCTestResourceProvider<org.testcontainers.containers.OracleContainer>
- Parameters:
propertyName
- the property to resolverequestedProperties
- the resolved propertiestestResourcesConfig
- the test resources configuration- Returns:
- if this resolver should answer
-
getDisplayName
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TestResourcesResolver
Returns a display name for a test resources resolver, used for debugging purposes.- Returns:
- the display name
-
getSimpleName
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractTestContainersProvider
Returns the name of the resource resolver, for example "kafka" or "mysql".- Specified by:
getSimpleName
in classAbstractTestContainersProvider<org.testcontainers.containers.OracleContainer>
- Returns:
- the name of the resolver
-
getDefaultImageName
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractTestContainersProvider
Returns the default image name.- Specified by:
getDefaultImageName
in classAbstractTestContainersProvider<org.testcontainers.containers.OracleContainer>
- Returns:
- the default image name.
-
extractOptions
protected Optional<io.r2dbc.spi.ConnectionFactoryOptions> extractOptions(org.testcontainers.containers.GenericContainer<?> container) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
extractOptions
in classAbstractR2DBCTestResourceProvider<org.testcontainers.containers.OracleContainer>
-
createContainer
protected org.testcontainers.containers.OracleContainer createContainer(org.testcontainers.utility.DockerImageName imageName, Map<String, Object> requestedProperties, Map<String, Object> testResourcesConfig) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractTestContainersProvider
Creates the test container.- Specified by:
createContainer
in classAbstractTestContainersProvider<org.testcontainers.containers.OracleContainer>
- Parameters:
imageName
- the docker image namerequestedProperties
- the resolved propertiestestResourcesConfig
- the test resources configuration- Returns:
- a container
-
oracle
instead.