Interface ServerUnderTestProvider

All Known Implementing Classes:
EmbeddedHttp2ServerUnderTestProvider, EmbeddedServerUnderTestProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ServerUnderTestProvider
Provides a server to test.
Since:
3.8.0
Author:
Sergio del Amo
  • Method Details

    • getServer

      @NonNull ServerUnderTest getServer(Map<String,Object> properties)
      Parameters:
      properties - Properties supplied to application context started.
      Returns:
      The server under test.
    • getServer

      default @NonNull ServerUnderTest getServer(String specName, Map<String,Object> properties)
      Parameters:
      specName - value of spec.name property used to avoid bean pollution.
      properties - Properties supplied to application context started.
      Returns:
      Server under test
    • getServer

      default @NonNull ServerUnderTest getServer(String specName)
      Parameters:
      specName - value of spec.name property used to avoid bean pollution.
      Returns:
      Server under test