我寫unit test案件,使用mocking概念,我mocking RestClient class 原代碼: final HttpResponse response = restClient.executeWithLoadBalancer(request);
測試類模擬代碼在Spock: restClient.executeWithLoadBalancer(_ as HttpRequest
我在使用SPOCK編寫測試用例時遇到了問題。任何人都可以幫我嗎? 我有類,如下面&接口, //Helper class
public class ObjClass{
//Defining all property variables & corresponding getters & setters methods.
}
//Interface