In order to generate a signature, we use the javax. crypto and java. security packages we imported while stubbing out GSUtils.
为了生成一个签名,我们需要使用GSUtils类中导入的javax.crypto和java.security程序包。
By stubbing out the network client we can now test the getBalance method.
通过网络客户端stub,我们现在能够测试getBalance方法。
Shams for stubbing out components you haven't built yet, in tests that need those components to exist
Shams用于在需要它们存在的测试中,剔除您没有构建的组件
Start by stubbing out a class called GStorageUploadServlet based on the code in Listing 25
首先,我们要基于清单25的代码创建一个名为GStorageUploadServlet的类
以上图片仅供学习交流使用,版权归原作者所有,如有侵权,请与我方联系