ResultVerifier.SnippetRun
public final class ResultVerifier.SnippetRun- Inheritance
ObjectSnippetRun
- Enclosing type
ResultVerifier
Provides the test execution data.
Methods5
List<? extends Value> getParameters()
getParameters
since 0.30Returns the actual parameters of a snippet execution.
Value getResult()
PolyglotException getException()
getException
since 0.30public PolyglotException getException()Returns the PolyglotException thrown during snippet execution. If the snippet execution throws an IllegalArgumentException, this exception is first converted to a PolyglotException, and the resulting PolyglotException is provided by this method.
Returns
PolyglotException- the
PolyglotExceptionthrown during the execution or null in case of successful execution.
static ResultVerifier.SnippetRun create(Snippet, List<? extends Value>, Value)
create
staticsince 0.30public static ResultVerifier.SnippetRun create(
Snippet snippet,
List< ? extends Value> parameters,
Value result
)Creates a new SnippetRun for successful execution.
Parameters
resultValue- the result of snippet execution
Returns
static ResultVerifier.SnippetRun create(Snippet, List<? extends Value>, PolyglotException)
create
staticsince 0.30public static ResultVerifier.SnippetRun create(
Snippet snippet,
List< ? extends Value> parameters,
PolyglotException exception
)Creates a new SnippetRun for failed execution.
Parameters
exceptionPolyglotException- the
PolyglotExceptionthrown during snippet execution