in java.net/pub/a/today/2004/07/05/tagunitintro.html">introduction to tagunit: part 1, we looked at some of the various ways in which custom tags can be tested before demonstrating some of the basic features provided by tagunit--an open source testing tool specifically aimed at jsp custom tags. in this article well complete the story by looking at some examples of how tests can be written with tagunit.
if you have experience with other testing frameworks, the conventions and frameworks of tagunit will feel familiar. in junit we have test suites, test cases, and assertions. likewise in tagunit. tests are written as assertions and these tests are grouped together to form a larger test case. test cases are then assembled to form a test suite. the key difference between tagunit and most other testing tools is that tests within tagunit are written as jsp pages rather than java classes. in tagunit, tests are broken down as follows. 【程序编程相关:Developing Swing Com】
test suites, test cases, and assertions 【推荐阅读:Behind The Scenes of】... 下一页