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

io.cucumber.core.backend.Backend Maven / Gradle / Ivy

There is a newer version: 7.20.1
Show newest version
package io.cucumber.core.backend;

import org.apiguardian.api.API;

import java.net.URI;
import java.util.List;

@API(status = API.Status.STABLE)
public interface Backend {

    /**
     * Invoked once before all features. This is where steps and hooks should be
     * loaded.
     *
     * @param glue      Glue that provides the steps to be executed.
     * @param gluePaths The locations for the glue to be loaded.
     */
    void loadGlue(Glue glue, List gluePaths);

    /**
     * Invoked before a new scenario starts. Implementations should do any
     * necessary setup of new, isolated state here. Additional scenario scoped
     * step definitions can be loaded here. These step definitions should
     * implement {@link ScenarioScoped}
     */
    void buildWorld();

    /**
     * Invoked at the end of a scenario, after hooks
     */
    void disposeWorld();

    Snippet getSnippet();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy