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

io.cucumber.plugin.event.StepDefinition Maven / Gradle / Ivy

There is a newer version: 7.18.1
Show newest version
package io.cucumber.plugin.event;


import org.apiguardian.api.API;

@API(status = API.Status.STABLE)
public final class StepDefinition {

    private final String location;
    private final String pattern;

    public StepDefinition(String location, String pattern) {
        this.location = location;
        this.pattern = pattern;
    }

    /**
     * The source line where the step definition is defined.
     * Example: com/example/app/Cucumber.test():42
     *
     * @return The source line of the step definition.
     */
    public String getLocation() {
        return location;
    }

    /**
     * @return the pattern associated with this instance. Used for error reporting only.
     */
    public String getPattern(){
        return pattern;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy