spock.lang.Execution Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spock-core Show documentation
Show all versions of spock-core Show documentation
Spock is a testing and specification framework for Java and Groovy applications.
What makes it stand out from the crowd is its beautiful and highly expressive specification language.
Thanks to its JUnit runner, Spock is compatible with most IDEs, build tools, and continuous integration servers.
Spock is inspired from JUnit, jMock, RSpec, Groovy, Scala, Vulcans, and other fascinating life forms.
package spock.lang;
import org.spockframework.runtime.extension.ExtensionAnnotation;
import org.spockframework.runtime.extension.builtin.ExecutionExtension;
import org.spockframework.runtime.model.parallel.ExecutionMode;
import org.spockframework.util.Beta;
import java.lang.annotation.*;
/**
* Allows to set the execution mode.
*
* @since 2.0
*/
@Beta
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@ExtensionAnnotation(ExecutionExtension.class)
public @interface Execution {
/**
* The required/preferred execution mode.
*
* @see ExecutionMode
*/
ExecutionMode value();
/**
* The reason of using a non-default execution mode.
*
* @since 2.4
*/
String reason() default "";
}