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 所示。
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 所示。
应用推荐