Search in sources :

Example 1 with JerseyClientConfiguration

use of io.dropwizard.client.JerseyClientConfiguration in project dropwizard by dropwizard.

the class AbstractRequestLogPatternIntegrationTest method setUp.

@Before
public void setUp() throws Exception {
    final JerseyClientConfiguration configuration = new JerseyClientConfiguration();
    configuration.setTimeout(Duration.seconds(2));
    client = new JerseyClientBuilder(dropwizardAppRule.getEnvironment()).using(configuration).build("test-request-logs");
}
Also used : JerseyClientConfiguration(io.dropwizard.client.JerseyClientConfiguration) JerseyClientBuilder(io.dropwizard.client.JerseyClientBuilder) Before(org.junit.Before)

Example 2 with JerseyClientConfiguration

use of io.dropwizard.client.JerseyClientConfiguration in project dropwizard by dropwizard.

the class DropwizardSSLConnectionSocketFactoryTest method setUp.

@Before
public void setUp() throws Exception {
    tlsConfiguration = new TlsConfiguration();
    tlsConfiguration.setTrustStorePath(new File(ResourceHelpers.resourceFilePath("stores/server/ca_truststore.ts")));
    tlsConfiguration.setTrustStorePassword("password");
    jerseyClientConfiguration = new JerseyClientConfiguration();
    jerseyClientConfiguration.setTlsConfiguration(tlsConfiguration);
    jerseyClientConfiguration.setConnectionTimeout(Duration.milliseconds(2000));
    jerseyClientConfiguration.setTimeout(Duration.milliseconds(5000));
}
Also used : JerseyClientConfiguration(io.dropwizard.client.JerseyClientConfiguration) File(java.io.File) Before(org.junit.Before)

Aggregations

JerseyClientConfiguration (io.dropwizard.client.JerseyClientConfiguration)2 Before (org.junit.Before)2 JerseyClientBuilder (io.dropwizard.client.JerseyClientBuilder)1 File (java.io.File)1