swangkkb / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

MOXy with JSON support #324

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I create my own custom ObjectMapperFactory and leverage MOXy.  I have to jump 
through several hoops to get this to work (specifying JAXB as the default type 
due to also having Jackson in the classpath).  However, there is no way to 
instruct MOXy to render application/json vs application/xml, which is done 
through Marshaller/Unmarshaller properties.  I need access to the 
ObjectMapperSerializationContext when the call to 
com.jayway.restassured.mapper.factory.ObjectMapperFactory.create(Class, String) 
is made as I'll need to know what the outgoing content type is.

The converse of what I described here is also necessary for inbound traffic.

Original issue reported on code.google.com by emile...@gmail.com on 25 Apr 2014 at 4:45

GoogleCodeExporter commented 9 years ago
Would it be possible for you to provide an example project (preferably Maven or 
Gradle) that demonstrates the issue? That would make it much simpler fix.

Original comment by johan.ha...@gmail.com on 14 May 2014 at 6:31

GoogleCodeExporter commented 9 years ago
I'd like to help out with this.. Could you provide an example? Doesn't need to 
be a complete project but some code would be great so that I can reproduce it 
in a test.

Original comment by johan.ha...@gmail.com on 3 Jun 2014 at 1:26

GoogleCodeExporter commented 9 years ago
No response from user

Original comment by johan.ha...@gmail.com on 14 Nov 2014 at 6:43