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

spock.lang.Isolated Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.4-M4-groovy-4.0
Show newest version
package spock.lang;

import org.spockframework.runtime.extension.ExtensionAnnotation;
import org.spockframework.runtime.extension.builtin.IsolatedExtension;
import org.spockframework.util.Beta;

import java.lang.annotation.*;

/**
 * Allows the isolated execution of a Specification.
 *
 * No other specification will execute at the same time.
 * This will also cause all features to run on the same thread
 * as the Specification.
 *
 * If you need more fine grained control take a look at
 * {@link ResourceLock}
 *
 * @see Execution
 * @see ResourceLock
 *
 * @since 2.0
 */
@Beta
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE})
@ExtensionAnnotation(IsolatedExtension.class)
public @interface Isolated {
  /**
   * The reason for isolating this specification.
   * 

* Sometimes it is not readily apparent why a Spec was isolated, so you can add a reason here. */ String value() default ""; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy