TestNG (Next Generation Testing Framework) – Understanding Annotations
Annotation: Annotation defines a type and it can be applied to several Java elements such as Java methods, classes, etc. Annotation adds meta-data facility to Java elements. Some examples of Java built-in annotations are: @Override @Deprecated @SuppressWarnings Each annotation will instruct the compiler to do something. For example, @Override tells the compiler to check whether …