Interface TestClientFactory

  • All Known Implementing Classes:
    DefaultTestClientFactory

    public interface TestClientFactory
    Factory for JerseyClient instance creation for ClientSupport.

    Custom factory might be useful, for example, if multipart data support should be enabled or gzip decoding.

    Since:
    15.11.2023
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.glassfish.jersey.client.JerseyClient create​(io.dropwizard.testing.DropwizardTestSupport<?> support)
      Creates client instance forClientSupport (once per support instance).
    • Method Detail

      • create

        org.glassfish.jersey.client.JerseyClient create​(io.dropwizard.testing.DropwizardTestSupport<?> support)
        Creates client instance forClientSupport (once per support instance). Called lazily (only before jersey client is actually required to perform call), so the support object should be already initialized.
        Parameters:
        support - support object
        Returns:
        client instance