当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: In java.net/pub/a/today/2004/07
 

 

    摘要:many java developers today have moved toward some form of logging and/or unit test framework, and their code has been purged of many system.out. println() statements that were the traditional approach......
 ·making fluid 3d creatures with jogl    »显示摘要«
    摘要: what has your gpu done for you today? most modern computers are equipped with a ridiculously fast chip thats dedicated to graphics processing, but java programs rarely get the chance to make it sing......


Introduction to Tag Unit, Part 2

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


...   下一页
 ·introduction to tag unit, part 1    »显示摘要«
    摘要: jsp custom tags allow developers to abstract complex code out of a jsp page and into reusable components. jsp custom tags are not, however, standalone classes, and therefore cannot be fully tested ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE