This approach makes testing protected methods much easier because the test case class can now extend the class that contains the protected methods.
这种方法使得测试受保护的方法非常容易,因为测试案例类现在可以扩展包含受保护方法的类了。
One of the most useful of these is the PrivateAccessor class, which makes testing private methods a snap regardless of your testing framework of choice.
其中最有用的一个就是privateaccessor类,它把对private方法的测试变成小菜一碟,无论选择的测试框架是什么。
Each of these unit test methods takes an object of a specific class and a string (where the string is expected to be the name of the getter method that you are testing).
每个单元测试方法获取一个具体类的对象和一个字符串(字符串应该是您在测试的getter方法的名称)。
Naming conventions are also used in testing, for example JUnit automatically recognizes all the methods in the class that start with prefix test.
命名惯例还用于单元测试,如,JUnit单元测试工具会辨认所有以test开头的类。
Experienced users of unittest might try to argue that the above example should use the testing methods that my new TruthTest class has inherited from TestCase.
有使用unittest经验的用户可能认为,上面的示例应该使用truthtest类从testcase类继承的测试方法。
The paper puts forward an automated testing case generator algorithm which uses equivalence class division methods and formal specification.
本文提出了一种从形式规格说明中利用等价类划分的方法自动生成软件测试用例的算法,给出了算法步骤。
The idea, methods of class testing, such as service-based, OSD-based (Object State Diagram), flow graph-based and specification-based, are discussed.
文章从基于服务的、基于对象动态测试模型的、基于流图的以及基于规约的四个方面论述了类测试的思想和方法。
The paper describes the methods of the class-level testing for object-oriented software based on algebraic specification, and constructs a frame for semi-automatic testing frame.
本文研究了基于代数规格说明的面向对象类测试方法,构造了一个半自动化的测试框架。
The paper describes the methods of the class-level testing for object-oriented software based on algebraic specification, and constructs a frame for semi-automatic testing frame.
本文研究了基于代数规格说明的面向对象类测试方法,构造了一个半自动化的测试框架。
应用推荐