org.junit.Rule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit Show documentation
Show all versions of junit Show documentation
JUnit is a regression testing framework. It is used by the developer who implements unit tests in Java.
package org.junit;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import org.junit.rules.MethodRule;
/**
* Annotates fields that contain rules. Such a field must be public, not
* static, and a subtype of {@link MethodRule}. For more information,
* see {@link MethodRule}
*/
@Retention(RetentionPolicy.RUNTIME)
public @interface Rule {
}