Class OracleXETestResourceProvider

java.lang.Object
io.micronaut.testresources.testcontainers.AbstractTestContainersProvider<T>
io.micronaut.testresources.jdbc.AbstractJdbcTestResourceProvider<org.testcontainers.containers.OracleContainer>
io.micronaut.testresources.oracle.xe.OracleXETestResourceProvider
All Implemented Interfaces:
io.micronaut.core.order.Ordered, TestResourcesResolver, ToggableTestResourcesResolver

@Deprecated(since="2.4.0", forRemoval=true) public class OracleXETestResourceProvider extends AbstractJdbcTestResourceProvider<org.testcontainers.containers.OracleContainer>
Deprecated, for removal: This API element is subject to removal in a future version.
Use oracle instead.
A test resource provider which will spawn an Oracle XE test container.
  • Field Details

    • DISPLAY_NAME

      public static final String DISPLAY_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • OracleXETestResourceProvider

      public OracleXETestResourceProvider()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getDisplayName

      public String 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
    • getRequiredProperties

      public List<String> getRequiredProperties(String expression)
      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 interface TestResourcesResolver
      Overrides:
      getRequiredProperties in class AbstractJdbcTestResourceProvider<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 class AbstractJdbcTestResourceProvider<org.testcontainers.containers.OracleContainer>
      Parameters:
      propertyName - the property to resolve
      requestedProperties - the resolved properties
      testResourcesConfig - the test resources configuration
      Returns:
      if this resolver should answer
    • getSimpleName

      protected String 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 class AbstractTestContainersProvider<org.testcontainers.containers.OracleContainer>
      Returns:
      the name of the resolver
    • getDefaultImageName

      protected String 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 class AbstractTestContainersProvider<org.testcontainers.containers.OracleContainer>
      Returns:
      the default image name.
    • 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 class AbstractTestContainersProvider<org.testcontainers.containers.OracleContainer>
      Parameters:
      imageName - the docker image name
      requestedProperties - the resolved properties
      testResourcesConfig - the test resources configuration
      Returns:
      a container