All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.junit.experimental.categories.Category Maven / Gradle / Ivy

Go to download

JUnit is a regression testing framework written by Erich Gamma and Kent Beck. It is used by the developer who implements unit tests in Java.

There is a newer version: 4.13.2
Show newest version
package org.junit.experimental.categories;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Marks a test class or test method as belonging to one or more categories of tests.
 * The value is an array of arbitrary classes.
 *
 * This annotation is only interpreted by the Categories runner (at present).
 *
 * For example:
 * 
 * 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 {@link Categories}. */ @Retention(RetentionPolicy.RUNTIME) public @interface Category { Class[] value(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy