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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -