Search in sources :

Example 6 with JAXRSContract

use of feign.jaxrs.JAXRSContract in project atlasdb by palantir.

the class TransactionRemotingTest method setup.

@Before
public void setup() {
    String uri = dropwizard.baseUri().toString();
    service = Feign.builder().decoder(new JacksonDecoder(mapper)).encoder(new JacksonEncoder(mapper)).contract(new JAXRSContract()).target(AtlasDbService.class, uri);
}
Also used : JacksonEncoder(feign.jackson.JacksonEncoder) JAXRSContract(feign.jaxrs.JAXRSContract) JacksonDecoder(feign.jackson.JacksonDecoder) AtlasDbService(com.palantir.atlasdb.api.AtlasDbService) Before(org.junit.Before)

Aggregations

JAXRSContract (feign.jaxrs.JAXRSContract)6 Test (org.junit.Test)5 AbstractClientTest (feign.client.AbstractClientTest)3 JacksonDecoder (feign.jackson.JacksonDecoder)3 JacksonEncoder (feign.jackson.JacksonEncoder)3 MockResponse (okhttp3.mockwebserver.MockResponse)3 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 InMemoryTimestampService (com.palantir.timestamp.InMemoryTimestampService)2 TimestampService (com.palantir.timestamp.TimestampService)2 RecordedRequest (okhttp3.mockwebserver.RecordedRequest)2 AtlasDbService (com.palantir.atlasdb.api.AtlasDbService)1 TimestampRange (com.palantir.timestamp.TimestampRange)1 HttpClient (org.apache.hc.client5.http.classic.HttpClient)1 HttpClient (org.apache.http.client.HttpClient)1 Before (org.junit.Before)1