1package org.junit.experimental.categories;
2
3import java.lang.annotation.Retention;
4import java.lang.annotation.RetentionPolicy;
5
6/**
7 * Marks a test class or test method as belonging to one or more categories of tests.
8 * The value is an array of arbitrary classes.
9 *
10 * This annotation is only interpreted by the Categories runner (at present).
11 *
12 * For example:
13<pre>
14	public interface FastTests {}
15	public interface SlowTests {}
16
17	public static class A {
18		&#064;Test
19		public void a() {
20			fail();
21		}
22
23		&#064;Category(SlowTests.class)
24		&#064;Test
25		public void b() {
26		}
27	}
28
29	&#064;Category({SlowTests.class, FastTests.class})
30	public static class B {
31		&#064;Test
32		public void c() {
33
34		}
35	}
36</pre>
37 *
38 * For more usage, see code example on {@link Categories}.
39 */
40@Retention(RetentionPolicy.RUNTIME)
41public @interface Category {
42	Class<?>[] value();
43}