I have a dropwizard application with a single resource. The resource is hosted on the server in form of JSON. I want to test the JSON created by dropwizard application by hosting a test server using TestServer Class of Dropwizard testing. So, I need to know how to stop/start a server using TestServer class in a dropwizard application. And I need to do it during test phase only no other alternative way.
Aucun commentaire:
Enregistrer un commentaire