Interface PostgresTestPropertyProvider

All Superinterfaces:
Supplier<Map<String,String>>, io.micronaut.test.support.TestPropertyProvider

public interface PostgresTestPropertyProvider extends io.micronaut.test.support.TestPropertyProvider
Declarada diretamente nas classes de teste (não só na superclasse), para o Micronaut Test aplicar TestPropertyProvider e sobrescrever o jdbc:... do application.yml.

Exige @TestInstance(Lifecycle.PER_CLASS) na classe de teste: com o ciclo padrão PER_METHOD não há instância em beforeAll, então getProperties() não é chamado e o datasource continua o do YAML.

  • Method Summary

    Modifier and Type
    Method
    Description
    default Map<String,String>
     

    Methods inherited from interface io.micronaut.test.support.TestPropertyProvider

    get
  • Method Details

    • getProperties

      default Map<String,String> getProperties()
      Specified by:
      getProperties in interface io.micronaut.test.support.TestPropertyProvider