public class TestExecutionResult extends Object implements ExecutionResult
GraphQLError
with setters for deserialization.Constructor and Description |
---|
TestExecutionResult() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getData() |
List<GraphQLError> |
getErrors() |
Map<Object,Object> |
getExtensions() |
boolean |
isDataPresent() |
void |
setData(Object data) |
void |
setErrors(List<org.springframework.graphql.test.tester.TestGraphQlError> errors) |
void |
setExtensions(Map<Object,Object> extensions) |
Map<String,Object> |
toSpecification() |
public void setData(Object data)
public <T> T getData()
getData
in interface ExecutionResult
public void setErrors(List<org.springframework.graphql.test.tester.TestGraphQlError> errors)
public List<GraphQLError> getErrors()
getErrors
in interface ExecutionResult
public boolean isDataPresent()
isDataPresent
in interface ExecutionResult
public Map<Object,Object> getExtensions()
getExtensions
in interface ExecutionResult
public Map<String,Object> toSpecification()
toSpecification
in interface ExecutionResult