net.masterthought.cucumber.json
Class DocString
java.lang.Object
net.masterthought.cucumber.json.DocString
public class DocString
- extends Object
Doc Strings are handy for specifying a larger piece of text. This is inspired from Python’s Docstring syntax.
In your step definition, there’s no need to find this text and match it in your Regexp. It will automatically be passed as the last parameter in the step definition.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocString
public DocString()
getValue
public String getValue()
getContentType
public String getContentType()
getLine
public Integer getLine()
getEscapedValue
public String getEscapedValue()
- Returns getValue but escaped for HTML and to preserve whitespace
hasValue
public boolean hasValue()
- Returns:
- Returns true if value has content
Copyright © 2014. All Rights Reserved.