use of feign.Feign.ResponseMappingDecoder in project feign by OpenFeign.
the class FeignUnderAsyncTest method responseMapperIsAppliedBeforeDelegate.
@Test
public void responseMapperIsAppliedBeforeDelegate() throws IOException {
ResponseMappingDecoder decoder = new ResponseMappingDecoder(upperCaseResponseMapper(), new StringDecoder());
String output = (String) decoder.decode(responseWithText("response"), String.class);
assertThat(output).isEqualTo("RESPONSE");
}
use of feign.Feign.ResponseMappingDecoder in project feign by OpenFeign.
the class FeignTest method responseMapperIsAppliedBeforeDelegate.
@Test
public void responseMapperIsAppliedBeforeDelegate() throws IOException {
ResponseMappingDecoder decoder = new ResponseMappingDecoder(upperCaseResponseMapper(), new StringDecoder());
String output = (String) decoder.decode(responseWithText("response"), String.class);
assertThat(output).isEqualTo("RESPONSE");
}
use of feign.Feign.ResponseMappingDecoder in project feign by OpenFeign.
the class Http2ClientAsyncTest method responseMapperIsAppliedBeforeDelegate.
@Test
public void responseMapperIsAppliedBeforeDelegate() throws IOException {
final ResponseMappingDecoder decoder = new ResponseMappingDecoder(upperCaseResponseMapper(), new StringDecoder());
final String output = (String) decoder.decode(responseWithText("response"), String.class);
Assertions.assertThat(output).isEqualTo("RESPONSE");
}
use of feign.Feign.ResponseMappingDecoder in project feign by OpenFeign.
the class AsyncApacheHttp5ClientTest method responseMapperIsAppliedBeforeDelegate.
@Test
public void responseMapperIsAppliedBeforeDelegate() throws IOException {
final ResponseMappingDecoder decoder = new ResponseMappingDecoder(upperCaseResponseMapper(), new StringDecoder());
final String output = (String) decoder.decode(responseWithText("response"), String.class);
assertThat(output).isEqualTo("RESPONSE");
}
use of feign.Feign.ResponseMappingDecoder in project feign by OpenFeign.
the class AsyncFeignTest method responseMapperIsAppliedBeforeDelegate.
@Test
public void responseMapperIsAppliedBeforeDelegate() throws IOException {
ResponseMappingDecoder decoder = new ResponseMappingDecoder(upperCaseResponseMapper(), new StringDecoder());
String output = (String) decoder.decode(responseWithText("response"), String.class);
assertThat(output).isEqualTo("RESPONSE");
}
Aggregations