The following code will stub the system class Date to always return the same date, say Ground Hog Day, as in Listing 6.
下面的代码对系统类Date 进行stub 以便总是返回相同的日期,比如Ground Hog Day,如清单 6 所示。
youdao
Have you ever heard of Ground-hog Day?
你听说过美洲旱獭节吗?
应用推荐
模块上移
模块下移
不移动