Interface Located

    • Method Detail

      • isDefinedAt

        boolean isDefinedAt​(StackTraceElement stackTraceElement)
        Parameters:
        stackTraceElement - The location of the step.
        Returns:
        Return true if this matches the location. This is used to filter stack traces.
      • getLocation

        String getLocation()
        Location of step definition. Can either be a a method or stack trace style location.

        Examples:

        • com.example.StepDefinitions.given_an_example(io.cucumber.datatable.DataTable)
        • com.example.StepDefinitions.<init>(StepDefinitions.java:9)
        Returns:
        The source line of the step definition.