1

I am using RestBuilder (LINK) for making REST calls to outer services. Now I want to mock that http requests for unit testing (or integration testing, whatever) service that handles all logic about communication with that outer services.

Does anyone know how to mock http requests or this RestBuilder maybe?

Thanks for any help! Ivan

4

1 回答 1

1

This kind of test is called «functional test». There are many plugins that can help you with this task:

http://www.grails.org/plugin/functional-test

http://www.grails.org/plugins/tag/functional

于 2013-10-01T13:20:33.997 回答