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");
}
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));
}
Aggregations