清单20:使用WicketTester辅助方法测试单独的面板。
Listing 20: Testing of isolated panel using WicketTester helper methods.
集成测试还需要更复杂的设置和断言,这使它们比分别测试单独的方面更难编写。
Integration tests also require more complicated set up and assertions. This makes them harder to write than tests that isolate a single aspect.
这个国家几乎已经打败了棉铃象鼻虫,农业部对每包棉铃都用复杂难懂的方法进行了单独的测试。
The country has pretty much defeated the boll weevil, and the Department of Agriculture individually tests every bale on obscure measures.
Thus far, for us it's been testing individual functions. Later in the term we'll talk about unit testing of classes.
至今为止,我们用到单元测试的地方,就是测试每个单独的方法,在后面我们会讲到类的单元测试。
应用推荐