Interface ServerUnderTestProvider

  • All Known Implementing Classes:
    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
    • Method Detail

      • getServer

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

        @NonNull
        default ServerUnderTest getServer​(java.lang.String specName,
                                          java.util.Map<java.lang.String,​java.lang.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

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