Skip to content

Commit c37c96e

Browse files
committed
Update spring-graphql-test dependencies
1 parent 5bc10e3 commit c37c96e

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

spring-graphql-test/build.gradle

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
id 'maven'
66
}
77

8-
description = "GraphQL Java Test Support for Spring Applications"
8+
description = "Spring Support for Testing GraphQL Applications"
99

1010
java {
1111
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -14,9 +14,9 @@ java {
1414

1515
dependencyManagement {
1616
imports {
17-
mavenBom "com.fasterxml.jackson:jackson-bom:2.12.0"
18-
mavenBom "io.projectreactor:reactor-bom:2020.0.2"
19-
mavenBom "org.springframework:spring-framework-bom:5.3.2"
17+
mavenBom "com.fasterxml.jackson:jackson-bom:2.12.3"
18+
mavenBom "io.projectreactor:reactor-bom:2020.0.6"
19+
mavenBom "org.springframework:spring-framework-bom:5.3.6"
2020
}
2121
generatedPomCustomization {
2222
enabled = false
@@ -28,26 +28,26 @@ dependencies {
2828
api 'com.graphql-java:graphql-java:16.2'
2929
api 'io.projectreactor:reactor-core'
3030
api 'org.springframework:spring-context'
31-
api 'com.jayway.jsonpath:json-path:2.4.0'
31+
api 'org.springframework:spring-test'
32+
api 'com.jayway.jsonpath:json-path:2.5.0'
3233

3334
compileOnly "javax.annotation:javax.annotation-api:1.3.2"
3435
compileOnly 'org.springframework:spring-webflux'
3536
compileOnly 'org.springframework:spring-webmvc'
3637
compileOnly 'org.springframework:spring-websocket'
37-
compileOnly 'org.springframework:spring-test'
3838
compileOnly 'javax.servlet:javax.servlet-api:4.0.1'
3939
compileOnly 'org.skyscreamer:jsonassert:1.5.0'
4040

41-
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.0'
42-
testImplementation 'org.assertj:assertj-core:3.18.1'
41+
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
42+
testImplementation 'org.assertj:assertj-core:3.19.0'
4343
testImplementation 'org.mockito:mockito-core:3.8.0'
44+
testImplementation 'org.skyscreamer:jsonassert:1.5.0'
4445
testImplementation 'org.springframework:spring-webflux'
4546
testImplementation 'org.springframework:spring-test'
4647
testImplementation 'io.projectreactor:reactor-test'
4748
testImplementation 'io.projectreactor.netty:reactor-netty'
48-
testImplementation 'com.fasterxml.jackson.core:jackson-databind'
4949
testImplementation 'com.squareup.okhttp3:mockwebserver:3.14.9'
50-
testImplementation 'org.skyscreamer:jsonassert:1.5.0'
50+
testImplementation 'com.fasterxml.jackson.core:jackson-databind'
5151

5252
testRuntime 'org.apache.logging.log4j:log4j-core:2.14.1'
5353
testRuntime 'org.apache.logging.log4j:log4j-slf4j-impl:2.14.1'

spring-graphql-test/src/main/java/org/springframework/graphql/test/query/DefaultGraphQLTester.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ public ResponseSpec execute(RequestInput requestInput) {
147147
byte[] bytes = result.getResponseBodyContent();
148148
Assert.notNull(bytes, "Expected GraphQL response content");
149149
String content = new String(bytes, StandardCharsets.UTF_8);
150-
DocumentContext documentContext = null;
151-
documentContext = JsonPath.parse(content, this.jsonPathConfig);
150+
DocumentContext documentContext = JsonPath.parse(content, this.jsonPathConfig);
152151

153152
return new DefaultResponseSpec(documentContext, result::assertWithDiagnostics);
154153
}

0 commit comments

Comments
 (0)