Interface GraphQlTester.Traversable

All Known Subinterfaces:
GraphQlTester.Entity<D,S>, GraphQlTester.EntityList<E>, GraphQlTester.Path, GraphQlTester.Response
Enclosing interface:
GraphQlTester

public static interface GraphQlTester.Traversable
Declare options to switch to different part of the GraphQL response.
  • Method Summary

    Modifier and Type
    Method
    Description
    path(String path)
    Switch to a path under the "data" section of the GraphQL response.
  • Method Details

    • path

      Switch to a path under the "data" section of the GraphQL response. The path can be an operation root type name, e.g. "project", or a nested path such as "project.name", or any JsonPath.
      Parameters:
      path - the path to switch to
      Returns:
      spec for asserting the content under the given path
      Throws:
      AssertionError - if the GraphQL response contains errors that have not be checked via GraphQlTester.Response.errors()