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

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

The newest version!
package io.cucumber.core.backend;

import org.apiguardian.api.API;

import java.util.Optional;

@API(status = API.Status.STABLE)
public interface HookDefinition extends Located {

    void execute(TestCaseState state);

    String getTagExpression();

    int getOrder();

    default Optional getHookType() {
        return Optional.empty();
    }

    enum HookType {

        BEFORE,

        AFTER,

        BEFORE_STEP,

        AFTER_STEP;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy