Interface DevServicesContext


public interface DevServicesContext
Interface that can be used to get properties from DevServices for QuarkusTest and QuarkusIntegrationTest based tests. This can be injected into fields on a test class, or injected into DevServicesContext.ContextAware objects on the test class or TestResourceManager implementations.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Interface that can be implemented to allow automatic injection of the context.
  • Method Summary

    Modifier and Type
    Method
    Description
    If the application is going to be launched in a container, this method returns the id of container network it will be launched on.
    Returns a map containing all the properties creates by potentially launched dev services.
  • Method Details

    • devServicesProperties

      Map<String,String> devServicesProperties()
      Returns a map containing all the properties creates by potentially launched dev services. If no dev services where launched, the map will be empty.
    • containerNetworkId

      Optional<String> containerNetworkId()
      If the application is going to be launched in a container, this method returns the id of container network it will be launched on.