Betamax is not recording calls to RESTClient in Grails -


i have betamax test i'm trying configure intercept calls web service using restclient. calls web service aren't getting recorded. test code looks this:

@betamax(tape = 'pending_transfer_success')         void "test creatependingtransfer"() {             betamaxrouteplanner.configure(restclient.client)             betamaxhttpssupport.configure(restclient.client)              when:             transfer transfer = service.creatependingtransfer(                     beneficiaryfirstname, beneficiarylastname, beneficiaryuseremail, lineitemsidstotransfer)              then:             ...     } 

inside setup() method i'm configuring restclient so:

restclient = new restclient("${grailsapplication.config.acme.account.api.url}/") service.restclient = restclient 

the app grails 2.2.3 app , test written using spock. explaining why calls isn't being recorded appreciated.


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -