This post originated from an RSS feed registered with Java Buzz
by Simon Brown.
Original Post: Introduction to TagUnit article published on java.net
Feed Title: Simon Brown's weblog
Feed URL: http://www.simongbrown.com/blog/feed.xml?flavor=rss20&category=java
Feed Description: My thoughts on Java, software development and technology.
The first of two articles about TagUnit has been published over at java.net. If you've not come across TagUnit before, it's a framework for testing JSP tags from within JSP pages and was something that I started because I wanted a way to test custom tags as components rather than standalone classes. Here's the abstract.
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 with tools like JUnit. Once you think of custom tags as components in their own right, you see that they should be tested -- and tested as components. This pair of articles will introduce TagUnit -- an easy-to-use, open source testing tool that makes it possible to comprehensively test JSP tags."