Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- and() - Method in class com.graphql.spring.boot.test.assertions.GraphQLBigDecimalAssert
- and() - Method in class com.graphql.spring.boot.test.assertions.GraphQLBigIntegerAssert
- and() - Method in class com.graphql.spring.boot.test.assertions.GraphQLBooleanAssert
- and() - Method in class com.graphql.spring.boot.test.assertions.GraphQLByteAssert
- and() - Method in class com.graphql.spring.boot.test.assertions.GraphQLErrorListAssertion
- and() - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
- and() - Method in class com.graphql.spring.boot.test.assertions.GraphQLGenericObjectAssert
- and() - Method in class com.graphql.spring.boot.test.assertions.GraphQLIntegerAssert
- and() - Method in class com.graphql.spring.boot.test.assertions.GraphQLListAssert
- and() - Method in class com.graphql.spring.boot.test.assertions.GraphQLLongAssert
- and() - Method in interface com.graphql.spring.boot.test.assertions.GraphQLResponseAssertion
- and() - Method in class com.graphql.spring.boot.test.assertions.GraphQLShortAssert
- and() - Method in class com.graphql.spring.boot.test.assertions.GraphQLStringAssert
- and() - Method in class com.graphql.spring.boot.test.assertions.NumberOfErrorsAssertion
- as(JavaType) - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Returns an assertion for the content of the field as an instance of the specified type.
- as(Class<T>) - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Returns an assertion for the content of the field as an instance of the specified class.
- asBigDecimal() - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Returns an assertion for the content of the field as
BigDecimal
. - asBigInteger() - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Returns an assertion for the content of the field as
BigInteger
. - asBoolean() - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Returns an assertion for the content of the field as
Boolean
. - asByte() - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Returns an assertion for the content of the field as
Byte
. - asInteger() - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Returns an assertion for the content of the field as
Integer
. - asList(JavaType) - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Returns an assertion for the content of the field as an instance of the specified list type.
- asListOf(Class<T>) - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Returns an assertion for the content of the field as list of objects.
- asLong() - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Returns an assertion for the content of the field as
Long
. - assertGraphQLError(GraphQL, String, GraphQLError, GraphQLObjectMapper) - Static method in class com.graphql.spring.boot.test.TestUtils
- assertNoGraphQLErrors(GraphQL, String) - Static method in class com.graphql.spring.boot.test.TestUtils
- assertNoGraphQLErrors(GraphQL, Map<String, Object>, Object, String) - Static method in class com.graphql.spring.boot.test.TestUtils
- assertThatDataField() - Method in class com.graphql.spring.boot.test.GraphQLResponse
-
Returns an assertion for the root "data" field.
- assertThatErrorsField() - Method in class com.graphql.spring.boot.test.GraphQLResponse
-
Returns an assertion for the root "errors" field.
- assertThatExtensionsField() - Method in class com.graphql.spring.boot.test.GraphQLResponse
-
Returns an assertion for the root "extensions" field.
- assertThatField(String) - Method in class com.graphql.spring.boot.test.GraphQLResponse
-
Returns an assertion for the given field(s).
- assertThatJsonContent() - Method in class com.graphql.spring.boot.test.GraphQLResponse
-
Returns an assertion for the JSON content of the response.
- assertThatListOfErrors() - Method in class com.graphql.spring.boot.test.GraphQLResponse
-
Returns an assertion for the list of errors in the response.
- assertThatNoErrorsArePresent() - Method in class com.graphql.spring.boot.test.GraphQLResponse
-
Asserts that no errors are present in the response.
- assertThatNumberOfErrors() - Method in class com.graphql.spring.boot.test.GraphQLResponse
-
Returns an assertion for the number of errors in the response.
- asShort() - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Returns an assertion for the content of the field as
Short
. - asString() - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Returns an assertion for the content of the field as
String
. - awaitAndGetAllResponses(int) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Deprecated.
- awaitAndGetAllResponses(int, boolean) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Deprecated.since 12.0.0. Use
GraphQLTestSubscription.awaitAndGetAllResponses(Duration,boolean)
instead. - awaitAndGetAllResponses(Duration) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Waits a specified amount time and returns all responses received during that time.
- awaitAndGetAllResponses(Duration, boolean) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Waits a specified amount time and returns all responses received during that time.
- awaitAndGetNextResponse(int) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Deprecated.since 12.0.0. Use
GraphQLTestSubscription.awaitAndGetNextResponse(Duration)
instead. - awaitAndGetNextResponse(int, boolean) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Deprecated.since 12.0.0. Use
GraphQLTestSubscription.awaitAndGetNextResponse(Duration,boolean)
instead. - awaitAndGetNextResponse(Duration) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Awaits and returns the next response received from the subscription.
- awaitAndGetNextResponse(Duration, boolean) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Awaits and returns the next response received from the subscription.
- awaitAndGetNextResponses(int, int) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Deprecated.since 12.0.0. Use
GraphQLTestSubscription.awaitAndGetNextResponses(Duration,int)
instead. - awaitAndGetNextResponses(int, int, boolean) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Deprecated.since 12.0.0. Use
GraphQLTestSubscription.awaitAndGetNextResponses(Duration,int,boolean)
instead. - awaitAndGetNextResponses(Duration, int) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Awaits and returns the specified number of responses.
- awaitAndGetNextResponses(Duration, int, boolean) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Awaits and returns the specified number of responses.
C
- com.graphql.spring.boot.test - package com.graphql.spring.boot.test
- com.graphql.spring.boot.test.assertions - package com.graphql.spring.boot.test.assertions
- com.graphql.spring.boot.test.helper - package com.graphql.spring.boot.test.helper
- context() - Method in class com.graphql.spring.boot.test.GraphQLResponse
D
- DATA_PATH - Static variable in class com.graphql.spring.boot.test.helper.GraphQLTestConstantsHelper
E
- ERRORS_PATH - Static variable in class com.graphql.spring.boot.test.helper.GraphQLTestConstantsHelper
- EXPECTED_FIELD_S_TO_BE_PRESENT - Static variable in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
- EXPECTED_THAT_CONTENT_OF_FIELD_S_CAN_BE_CONVERTED_TO_S - Static variable in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
- EXTENSIONS_PATH - Static variable in class com.graphql.spring.boot.test.helper.GraphQLTestConstantsHelper
G
- get(String) - Method in class com.graphql.spring.boot.test.GraphQLResponse
- get(String, JavaType) - Method in class com.graphql.spring.boot.test.GraphQLResponse
- get(String, Class<T>) - Method in class com.graphql.spring.boot.test.GraphQLResponse
- getList(String, Class<T>) - Method in class com.graphql.spring.boot.test.GraphQLResponse
- getRaw(String) - Method in class com.graphql.spring.boot.test.GraphQLResponse
- getRawResponse() - Method in class com.graphql.spring.boot.test.GraphQLResponse
- getRemainingResponses() - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Returns the remaining responses that were not returned so far.
- getStatusCode() - Method in class com.graphql.spring.boot.test.GraphQLResponse
- GraphQLBigDecimalAssert - Class in com.graphql.spring.boot.test.assertions
- GraphQLBigDecimalAssert(GraphQLResponse, BigDecimal) - Constructor for class com.graphql.spring.boot.test.assertions.GraphQLBigDecimalAssert
- GraphQLBigIntegerAssert - Class in com.graphql.spring.boot.test.assertions
- GraphQLBigIntegerAssert(GraphQLResponse, BigInteger) - Constructor for class com.graphql.spring.boot.test.assertions.GraphQLBigIntegerAssert
- GraphQLBooleanAssert - Class in com.graphql.spring.boot.test.assertions
- GraphQLBooleanAssert(GraphQLResponse, Boolean) - Constructor for class com.graphql.spring.boot.test.assertions.GraphQLBooleanAssert
- GraphQLByteAssert - Class in com.graphql.spring.boot.test.assertions
- GraphQLByteAssert(GraphQLResponse, Byte) - Constructor for class com.graphql.spring.boot.test.assertions.GraphQLByteAssert
- GraphQLErrorListAssertion - Class in com.graphql.spring.boot.test.assertions
- GraphQLErrorListAssertion(GraphQLResponse) - Constructor for class com.graphql.spring.boot.test.assertions.GraphQLErrorListAssertion
- GraphQLFieldAssert - Class in com.graphql.spring.boot.test.assertions
-
Provides fluent assertions for a field (specified by a json path) of the GraphQL response.
- GraphQLFieldAssert() - Constructor for class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
- GraphQLGenericObjectAssert<T> - Class in com.graphql.spring.boot.test.assertions
- GraphQLGenericObjectAssert(GraphQLResponse, T) - Constructor for class com.graphql.spring.boot.test.assertions.GraphQLGenericObjectAssert
- GraphQLIntegerAssert - Class in com.graphql.spring.boot.test.assertions
- GraphQLIntegerAssert(GraphQLResponse, Integer) - Constructor for class com.graphql.spring.boot.test.assertions.GraphQLIntegerAssert
- GraphQLListAssert<T> - Class in com.graphql.spring.boot.test.assertions
- GraphQLListAssert(GraphQLResponse, List<T>) - Constructor for class com.graphql.spring.boot.test.assertions.GraphQLListAssert
- GraphQLLongAssert - Class in com.graphql.spring.boot.test.assertions
- GraphQLLongAssert(GraphQLResponse, Long) - Constructor for class com.graphql.spring.boot.test.assertions.GraphQLLongAssert
- GraphQLResponse - Class in com.graphql.spring.boot.test
- GraphQLResponse(ResponseEntity<String>, ObjectMapper) - Constructor for class com.graphql.spring.boot.test.GraphQLResponse
- GraphQLResponseAssertion - Interface in com.graphql.spring.boot.test.assertions
-
Common interface for GraphQL assertions.
- GraphQLShortAssert - Class in com.graphql.spring.boot.test.assertions
- GraphQLShortAssert(GraphQLResponse, Short) - Constructor for class com.graphql.spring.boot.test.assertions.GraphQLShortAssert
- GraphQLStringAssert - Class in com.graphql.spring.boot.test.assertions
- GraphQLStringAssert(GraphQLResponse, String) - Constructor for class com.graphql.spring.boot.test.assertions.GraphQLStringAssert
- GraphQLTestConstantsHelper - Class in com.graphql.spring.boot.test.helper
- GraphQLTestError - Class in com.graphql.spring.boot.test
-
An implementation of the
GraphQLError
interface for testing purposes. - GraphQLTestError() - Constructor for class com.graphql.spring.boot.test.GraphQLTestError
- GraphQLTestSubscription - Class in com.graphql.spring.boot.test
-
Helper object to test GraphQL subscriptions.
- GraphQLTestSubscription() - Constructor for class com.graphql.spring.boot.test.GraphQLTestSubscription
- GraphQLTestTemplate - Class in com.graphql.spring.boot.test
-
Helper class to test GraphQL queries and mutations.
- GraphQLTestTemplate(ResourceLoader, TestRestTemplate, String, ObjectMapper) - Constructor for class com.graphql.spring.boot.test.GraphQLTestTemplate
H
- hasNoErrors() - Method in class com.graphql.spring.boot.test.assertions.GraphQLErrorListAssertion
I
- init() - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Sends the "connection_init" message to the GraphQL server without a payload.
- init(Object) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Sends the "connection_init" message to the GraphQL server.
- isAcknowledged() - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
- isCompleted() - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
- isInitialized() - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
- isNotNull() - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Asserts that the field specified by the provided JSON path is not null.
- isNotPresent() - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Asserts that the field specified by the provided JSON path is not present in the response.
- isNotPresentOrNull() - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Asserts that the field specified by the provided JSON path is not present in the response or its value is null.
- isNull() - Method in class com.graphql.spring.boot.test.assertions.GraphQLFieldAssert
-
Asserts that the field specified by the provided JSON path is null.
- isOk() - Method in class com.graphql.spring.boot.test.GraphQLResponse
- isStarted() - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
- isStopped() - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
J
- JacksonFriendlySourceLocation - Class in com.graphql.spring.boot.test
-
Allow deserialization of
SourceLocation
. - JacksonFriendlySourceLocation(int, int, String) - Constructor for class com.graphql.spring.boot.test.JacksonFriendlySourceLocation
N
- NumberOfErrorsAssertion - Class in com.graphql.spring.boot.test.assertions
- NumberOfErrorsAssertion(GraphQLResponse) - Constructor for class com.graphql.spring.boot.test.assertions.NumberOfErrorsAssertion
P
- PAYLOAD - Static variable in class com.graphql.spring.boot.test.GraphQLTestSubscription
- perform(String, ObjectNode) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Loads a GraphQL query or mutation from the given classpath resource and sends it to the GraphQL server.
- perform(String, ObjectNode, List<String>) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Loads a GraphQL query or mutation from the given classpath resource and sends it to the GraphQL server.
- perform(String, String) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Loads a GraphQL query or mutation from the given classpath resource and sends it to the GraphQL server.
- perform(String, String, ObjectNode) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Loads a GraphQL query or mutation from the given classpath resource and sends it to the GraphQL server.
- perform(String, String, ObjectNode, List<String>) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Loads a GraphQL query or mutation from the given classpath resource and sends it to the GraphQL server.
- post(String) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Performs a GraphQL request with the provided payload.
- postFiles(String, ObjectNode, List<ClassPathResource>) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Handle the multipart files upload request to GraphQL servlet
- postFiles(String, ObjectNode, List<ClassPathResource>, IntFunction<String>) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Handle the multipart files upload request to GraphQL servlet
- postForResource(String) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Loads a GraphQL query or mutation from the given classpath resource and sends it to the GraphQL server.
- postForResource(String, List<String>) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Loads a GraphQL query or mutation from the given classpath resource, appending any graphql fragment resources provided and sends it to the GraphQL server.
- postForString(String) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Performs a GraphQL request using the provided GraphQL query string.
- postForString(String, ObjectNode) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Performs a GraphQL request using the provided GraphQL query string and variables.
- postForString(String, String) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Performs a GraphQL request using the provided GraphQL query string and operation name.
- postForString(String, String, ObjectNode) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Performs a GraphQL request using the provided GraphQL query string, operation name, and variables.
- postForString(String, String, Map<String, ?>) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Performs a GraphQL request using the provided GraphQL query string, operation name, and variables.
- postForString(String, Map<String, ?>) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Performs a GraphQL request using the provided GraphQL query string and variables.
- postMultipart(String, String) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
R
- readTree() - Method in class com.graphql.spring.boot.test.GraphQLResponse
- reset() - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Stops (if needed) and resets this instance.
S
- start(String) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Sends the "start" message to the GraphQL server.
- start(String, Object) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Sends the "start" message to the GraphQL Subscription.
- stop() - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Sends the "stop" message to the server.
T
- TestUtils - Class in com.graphql.spring.boot.test
- TestUtils() - Constructor for class com.graphql.spring.boot.test.TestUtils
- toString() - Method in class com.graphql.spring.boot.test.GraphQLTestError
W
- waitAndExpectNoResponse(int) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Deprecated.since 12.0.0. Use
GraphQLTestSubscription.waitAndExpectNoResponse(Duration)
instead. - waitAndExpectNoResponse(int, boolean) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Deprecated.since 12.0.0. Use
GraphQLTestSubscription.waitAndExpectNoResponse(Duration,boolean)
instead. - waitAndExpectNoResponse(Duration) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Waits a specified amount of time and asserts that no responses were received during that time.
- waitAndExpectNoResponse(Duration, boolean) - Method in class com.graphql.spring.boot.test.GraphQLTestSubscription
-
Waits a specified amount of time and asserts that no responses were received during that time.
- withAdditionalHeader(String, String...) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Add an HTTP header that will be sent with each request this sends.
- withAdditionalHeaders(MultiValueMap<String, String>) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Add multiple HTTP header that will be sent with each request this sends.
- withBasicAuth(String) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Adds basic authentication to the authorization header.
- withBasicAuth(String, String) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Adds basic authentication to the authorization header.
- withBasicAuth(String, String, Charset) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Adds basic authentication to the authorization header.
- withBearerAuth(String) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Adds a bearer token to the authorization header.
- withClearHeaders() - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Clear all associated HTTP headers.
- withHeaders(HttpHeaders) - Method in class com.graphql.spring.boot.test.GraphQLTestTemplate
-
Replace any associated HTTP headers with the provided headers.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
GraphQLTestSubscription.awaitAndGetAllResponses(Duration)
instead.