Open Source Repository

Home /junit/junit-4.8.2 | Repository Home



org/junit/Rule.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 {

}