Interface TestClientFactory

All Known Implementing Classes:
ApacheTestClientFactory, DefaultTestClientFactory
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 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

    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 Details

    • 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