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

org.junit.runner.OrderWith Maven / Gradle / Ivy

Go to download

JUnit is a unit testing framework for Java, created by Erich Gamma and Kent Beck.

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

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.junit.runner.manipulation.Ordering;

/**
 * When a test class is annotated with @OrderWith or extends a class annotated
 * with @OrderWith, JUnit will order the tests in the test class (and child
 * test classes, if any) using the ordering defined by the {@link Ordering} class.
 *
 * @since 4.13
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Inherited
public @interface OrderWith {
    /**
     * Gets a class that extends {@link Ordering}. The class must have a public no-arg constructor.
     */
    Class value();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy