Package ratpack.test

Interface ApplicationUnderTest

    • Method Detail

      • getAddress

        URI getAddress()
        The address of the application under test, which is guaranteed to be listening for requests.

        Implementations should start the application if it has not already been started before returning from this method.

        Returns:
        the address of the application under test
      • getHttpClient

        default TestHttpClient getHttpClient()
        Creates a new test HTTP client that makes requests to this application.
        Returns:
        a new test HTTP client that tests this application