Sure sounds like that's the problem. For unit testing purposes, how about getting the text of representation, turning that into a StringRepresentation, and then constructing the JacksonRepresentation in terms of the StringRepresentation? It's wasteful, but it would allow you to proceed with your unit testing.
--tim On Sun, Aug 10, 2014 at 4:48 PM, Alex Harvey <a...@9poundhammer.com> wrote: > Hi, > > Thanks for the reply. Yes I tried calling Representation.getTest() on > either side of the call and the JSON appears to be correctly formed. > > I did notice the following message in my output when running under JUnit. > > WARNING: The GAE edition is unable to get an InputStream out of an > OutputRepresentation. > > This is a GAE application. Could this be the problem? > > Thanks, > > Alex > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3086557 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3086595