Hello, I'm currently developing an application in Java and want to use AppEngine. My setup uses Jersey JSON/REST to exchange data between the client and the server.
I would like to do following in the development mode with JUnit: * Start AppEngine * Execute Tests * Stop AppEngine I have had two threads open on Stackoverflow. First thread was how I can start AppEngine over Junit without spawning threads so that I can test my REST resources. I have been told that this is an integration test and Junit can't be used for that. I should try to test by executing the methods of the resource class directly. Ok, I was thinking but it is somehow funny because when reading the Jersey docs they suggest exactly this. Starting a webserver to test the REST resources with Junit. I tried then to execute the methods directly and this worked at least for the getStatus() method from the Response class. But when I execute the methods directly and want to use getEntity() method of the Response class I can't marshal the object back in to the entity class. So this isn't working either out of some reason and I'm unable get the created record back so that I have the contents. Is there any best practice provided by Google to test REST interfaces in an automated manner or does anybody know how to test jersey resource classes properly (without curl on the command line)? Its nice that I'm doing it all wrong and that Junit has nothing to do with Integration testing but somehow I need to test my classes. It would be great if somebody could give me a hint. Thanks, Chris -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/ypx7-KgtrlkJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.