Annotation Interface BeforeSpecification


@Target(METHOD) @Retention(RUNTIME) public @interface BeforeSpecification
Marks methods that are to be invoked before any examples in the specification are run.

For instance fields that you only want to initialise once per specification (for example browsers or database connections), see ConcordionScoped.

For example:

 @BeforeSpecification
 public void logBeforeSpecification() {
     log("Starting specification");
 }
 
Since:
2.0.0
See Also: