org.jtiger.framework
Annotation Type Category
@Documented
@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Inherited
public @interface Category
Used to annotate test case methods
or test fixture classes by specifying which category(ies) it is in.
A test case is in all categories that form the union of the annotations present on the test case method and on the
enclosing test fixture class. A test case has no requirement to be in a category, in which case, this annotation
should not be present on the test case method or its enclosing test fixture class.
Example:
@Fixture("Demonstration")
@Category({"Category1", "Category2"})
class MyTestFixture
{
@Test
@Category("Category3")
public void myTestCase()
{
}
}
The test case represented by the method, MyTestFixture.myTestCase
is in 3 categories,
Category1
, Category2
, and Category3
.
- Version:
- 2.1
Build Number 0376
Build Time 2006-07-28 01:50.16.218 CET (GMT + 1)
- Author:
- Tony Morris
- See Also:
Test
Required Element Summary |
String[] |
value
Returns the categories that the test case is in. |
value
public abstract String[] value
- Returns the categories that the test case is in.
- Returns:
- The categories that the test case is in.