Class Source


  • public final class Source
    extends Object
    Represents the Source message in Cucumber's message protocol
    See Also:
    Github - Cucumber - Messages //// Source A source file, typically a Gherkin document or Java/Ruby/JavaScript source code
    • Method Detail

      • getUri

        public String getUri()
        The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directory
      • getData

        public String getData()
        The contents of the file
      • getMediaType

        public SourceMediaType getMediaType()
        The media type of the file. Can be used to specify custom types, such as text/x.cucumber.gherkin+plain
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object