mercredi 6 avril 2016

Dropwizard 1.0 Integration Testing: Hitting an external API

I'm try to figure out how to integrate an external API and run every integration test against it. I've been reading and looking at:

http://ift.tt/1PUi2Kg

and

http://ift.tt/1yDLDir

but it looks like these are examples of testing local endpoints and not external ones. I would like to be able to test my api calls with JUnit tests. Currently I'm having to start up and run my app to make sure they're working.

I'm guessing it's not as easy as:

final Saying saying = client.target("http://ift.tt/1gcW4Wp" + getUser() + "/repos")

Any help would be much appreciated, thanks!

Aucun commentaire:

Enregistrer un commentaire