@Retention(value=RUNTIME) @Inherited public @interface Category
public interface FastTests {}
public interface SlowTests {}
public static class A {
@Test
public void a() {
fail();
}
@Category(SlowTests.class)
@Test
public void b() {
}
}
@Category({SlowTests.class, FastTests.class})
public static class B {
@Test
public void c() {
}
}
For more usage, see code example on Categories.public abstract Class<?>[] value
Copyright © 2002–2017 JUnit. All rights reserved.