Skip to content

Commit

Permalink
Update spring-graphql-test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoyanchev committed Apr 14, 2021
1 parent 5bc10e3 commit c37c96e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
20 changes: 10 additions & 10 deletions spring-graphql-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id 'maven'
}

description = "GraphQL Java Test Support for Spring Applications"
description = "Spring Support for Testing GraphQL Applications"

java {
sourceCompatibility = JavaVersion.VERSION_1_8
Expand All @@ -14,9 +14,9 @@ java {

dependencyManagement {
imports {
mavenBom "com.fasterxml.jackson:jackson-bom:2.12.0"
mavenBom "io.projectreactor:reactor-bom:2020.0.2"
mavenBom "org.springframework:spring-framework-bom:5.3.2"
mavenBom "com.fasterxml.jackson:jackson-bom:2.12.3"
mavenBom "io.projectreactor:reactor-bom:2020.0.6"
mavenBom "org.springframework:spring-framework-bom:5.3.6"
}
generatedPomCustomization {
enabled = false
Expand All @@ -28,26 +28,26 @@ dependencies {
api 'com.graphql-java:graphql-java:16.2'
api 'io.projectreactor:reactor-core'
api 'org.springframework:spring-context'
api 'com.jayway.jsonpath:json-path:2.4.0'
api 'org.springframework:spring-test'
api 'com.jayway.jsonpath:json-path:2.5.0'

compileOnly "javax.annotation:javax.annotation-api:1.3.2"
compileOnly 'org.springframework:spring-webflux'
compileOnly 'org.springframework:spring-webmvc'
compileOnly 'org.springframework:spring-websocket'
compileOnly 'org.springframework:spring-test'
compileOnly 'javax.servlet:javax.servlet-api:4.0.1'
compileOnly 'org.skyscreamer:jsonassert:1.5.0'

testImplementation 'org.junit.jupiter:junit-jupiter:5.7.0'
testImplementation 'org.assertj:assertj-core:3.18.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
testImplementation 'org.assertj:assertj-core:3.19.0'
testImplementation 'org.mockito:mockito-core:3.8.0'
testImplementation 'org.skyscreamer:jsonassert:1.5.0'
testImplementation 'org.springframework:spring-webflux'
testImplementation 'org.springframework:spring-test'
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'io.projectreactor.netty:reactor-netty'
testImplementation 'com.fasterxml.jackson.core:jackson-databind'
testImplementation 'com.squareup.okhttp3:mockwebserver:3.14.9'
testImplementation 'org.skyscreamer:jsonassert:1.5.0'
testImplementation 'com.fasterxml.jackson.core:jackson-databind'

testRuntime 'org.apache.logging.log4j:log4j-core:2.14.1'
testRuntime 'org.apache.logging.log4j:log4j-slf4j-impl:2.14.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ public ResponseSpec execute(RequestInput requestInput) {
byte[] bytes = result.getResponseBodyContent();
Assert.notNull(bytes, "Expected GraphQL response content");
String content = new String(bytes, StandardCharsets.UTF_8);
DocumentContext documentContext = null;
documentContext = JsonPath.parse(content, this.jsonPathConfig);
DocumentContext documentContext = JsonPath.parse(content, this.jsonPathConfig);

return new DefaultResponseSpec(documentContext, result::assertWithDiagnostics);
}
Expand Down

0 comments on commit c37c96e

Please sign in to comment.