Support decoding Mono in Jaxb2XmlDecoder

Issue: SPR-16759
This commit is contained in:
Sebastien Deleuze
2018-05-02 11:57:40 +02:00
parent 22edab852d
commit af0cb53742
3 changed files with 16 additions and 2 deletions

View File

@@ -227,6 +227,13 @@ public class RequestMappingMessageConversionIntegrationTests extends AbstractReq
JSON, Person.class).getBody());
}
@Test // SPR-16759
public void personTransformWithMonoAndXml() throws Exception {
assertEquals(new Person("ROBERT"),
performPost("/person-transform/mono", MediaType.APPLICATION_XML, new Person("Robert"),
MediaType.APPLICATION_XML, Person.class).getBody());
}
@Test
public void personTransformWithSingle() throws Exception {
assertEquals(new Person("ROBERT"),