Mocking a class in a script

2020-10-22 Thread Иванов Григорий -
Hi I have a production route with a groovy script I should test, is there a way to mock URL class or do something else to not really make a request to production API? The problem is that besides the request part it have some other stuff I would like to be tested. I agree, this route is not as

Re: Mocking a class in a script

2020-10-22 Thread Mantas Gridinas
Id suggest providing URL as an argument, but this looks too complex to be shoved in a groovy script. On Thu, Oct 22, 2020, 12:54 Иванов Григорий - wrote: > > Hi > > I have a production route with a groovy script I should test, is there a > way to mock URL class or do something else to not really