Package io.cucumber.messages.types
Class Source
java.lang.Object
io.cucumber.messages.types.Source
Represents the Source message in Cucumber's message protocol
A source file, typically a Gherkin document or Java/Ruby/JavaScript source code
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Source
-
-
Method Details
-
getUri
The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directory -
getData
The contents of the file -
getMediaType
The media type of the file. Can be used to specify custom types, such as text/x.cucumber.gherkin+plain -
equals
-
hashCode
public int hashCode() -
toString
-