当前,类测试常用的方法是基于状态的测试和数据流测试。
Now, the common used methods of classes testing are state -based testing and data flow testing.
用stub来做基于状态的测试,使用mock做基于交互的测试。
Use stubs for state based testing, use mocks for interaction based testing.
提出了一种混合类测试模型,能在基于状态的测试中提供有效数据流分析。
A composite class testing model can provides data flow analyzing in state-based testing.
应用推荐