TestUtilityMethodLocation
由图可知,测试工具方法的位置主要有三个地方:
1. SuperClass,测试父类,通过继承来访问测试工具方法。
2. TestClass,放到测试类自身中,通过this的形式访问 。
3. TestHelper,放到测试帮助类中,通过delegate的形式访问。
Java, Unit Test, Web2.0, XP, SOA, Open Source and Internet thoughts by tyler wang!
TestUtilityMethodLocation
由图可知,测试工具方法的位置主要有三个地方:
1. SuperClass,测试父类,通过继承来访问测试工具方法。
2. TestClass,放到测试类自身中,通过this的形式访问 。
3. TestHelper,放到测试帮助类中,通过delegate的形式访问。
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.