万一我们在首次尝试时不能成功地初始化项目,那么,在您再次尝试该过程之前,清空目标文件夹是明智的。
In case you are unable to initialize the project successfully at first attempt, it's advisable to clean the target folder before you attempt the process again.
您是否还记得一个set方法的主要目的是对测试下的目标进行初始化。
Do you recall that the purpose of a setup method is to initialize the object under test.
虽然这段代码是针对Printer的,但无论测试的是打印还是初始化,无论printer是方法调用的目标还是方法参数,都没有关系。
While this code is specific to a Printer, it is oblivious to whether the test is for printing or initialization, or to whether Printer is the target of a method call or a parameter to a method.
虽然这段代码是针对Printer的,但无论测试的是打印还是初始化,无论printer是方法调用的目标还是方法参数,都没有关系。
While this code is specific to a Printer, it is oblivious to whether the test is for printing or initialization, or to whether Printer is the target of a method call or a parameter to a method.
应用推荐