public static interface GraphQlTester.ErrorSpec
| Modifier and Type | Method and Description |
|---|---|
GraphQlTester.ErrorSpec |
filter(Predicate<GraphQLError> errorPredicate)
Add a filter for expected errors.
|
GraphQlTester.TraverseSpec |
satisfy(Consumer<List<GraphQLError>> errorsConsumer)
Inspect errors in
the response, if any.
|
GraphQlTester.TraverseSpec |
verify()
Verify there are either no errors or that there no unexpected errors that have
not been
filtered out. |
GraphQlTester.ErrorSpec filter(Predicate<GraphQLError> errorPredicate)
verify() or when
traversing to a data path.errorPredicate - the error filter to addverify()GraphQlTester.TraverseSpec verify()
filtered out.GraphQlTester.TraverseSpec satisfy(Consumer<List<GraphQLError>> errorsConsumer)
traversing to a data path.errorsConsumer - to inspect errors with