# define an empty interface
package net.kittyandbear;
public interface SlowTests {
}
# now unit tests can be labelled with a "category" across all source files
@Test
@Category( SlowTests.class )
public void test_isExample() throws Exception {
mvn test -Dtest.categories=SlowTests // run only slow tests
mvn test -Dtest.categories=!SlowTests // run non-slow tests
mvn test -Dtest.categories=SlowTests,FastTests // run only slow tests and fast tests
mvn test // run all tests, including non-categorized