@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
.Copyright © 2002-2012 JUnit. All Rights Reserved.