Article series: Crafting Java Code with Test-Driven Development
A series of chapters patterned after Jeff Langr’s book, Agile Java: Crafting Code with Test-Driven Development:
The basics – Getting started – Testing equality – Testing hash code – Shuffling and dealing – Handling exceptions – Refactoring tests – Adding some bulk
Author: Jeff Langr
Published: InformIT, 2005-2006
Other links to articles by Jeff Langr: InformIT – [url=http://www.testdriven.com/search.php?query=langr&action=results]testdriven.com[/url]
link
J2SE 5.0 introduced a new facility known as annotations. Annotations are a metaprogramming facility that allow you to mark code with arbitrarily defined tags. The tags (generally) have no meaning to the Java compiler or runtime itself. Instead, other tools can interpret these tags. Examples of tools for which annotations might be useful include IDEs, testing tools, profiling tools, and code-generation tools.