Appendix B. TestNG Javadocs

This appendix contains a list of the important Javadocs TestNG classes. Only a few selected classes are presented here:

  • Annotations
  • The TestNG class
  • The Xml classes

Since this kind of documentation tends to get out of date, we encourage you to refer to the online documentation or, better, to trust your IDE to give you the correct completions and latest documentation when you are developing.

JDK 1.4 and JDK 5

TestNG supports both JDK 1.4 and JDK 5. Since annotations are not supported on JDK 1.4, TestNG uses an alternative syntax to allow developers to annotate methods. This syntax is based on Javadocs tags, with each JDK 5 annotation matched with an equivalent Javadocs one. Each annotation described here is shown ...

Get Next Generation Java™ Testing: TestNG and Advanced Concepts now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.