use of feign.MethodMetadata in project feign by OpenFeign.
the class JAXRSContractTest method producesAndConsumesOnClassAddsHeader.
@Test
public void producesAndConsumesOnClassAddsHeader() throws Exception {
MethodMetadata md = parseAndValidateMetadata(ProducesAndConsumes.class, "producesAndConsumes");
assertThat(md.template()).hasHeaders(entry("Content-Type", asList("application/json")), entry("Accept", asList("text/html")));
}
Aggregations