Skip to content

Commit e22d3e8

Browse files
committed
Add GraphQLTester
See gh-43
1 parent 645cf21 commit e22d3e8

File tree

8 files changed

+1568
-2
lines changed

8 files changed

+1568
-2
lines changed

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ pluginManagement {
1515
}
1616

1717
rootProject.name = 'spring-graphql'
18-
include 'spring-graphql-web', 'graphql-spring-boot-starter', 'samples:webmvc-http', 'samples:webflux-websocket'
18+
include 'spring-graphql-web', 'spring-graphql-test', 'graphql-spring-boot-starter', 'samples:webmvc-http', 'samples:webflux-websocket'

spring-graphql-test/build.gradle

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
2+
plugins {
3+
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
4+
id 'java-library'
5+
id 'maven'
6+
}
7+
8+
description = "Spring Support for Testing GraphQL Applications"
9+
10+
java {
11+
sourceCompatibility = JavaVersion.VERSION_1_8
12+
targetCompatibility = JavaVersion.VERSION_1_8
13+
}
14+
15+
dependencyManagement {
16+
imports {
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"
20+
}
21+
generatedPomCustomization {
22+
enabled = false
23+
}
24+
}
25+
26+
dependencies {
27+
api project(':spring-graphql-web')
28+
api 'com.graphql-java:graphql-java:16.2'
29+
api 'io.projectreactor:reactor-core'
30+
api 'org.springframework:spring-context'
31+
api 'org.springframework:spring-test'
32+
api 'com.jayway.jsonpath:json-path:2.5.0'
33+
34+
compileOnly "javax.annotation:javax.annotation-api:1.3.2"
35+
compileOnly 'org.springframework:spring-webflux'
36+
compileOnly 'org.springframework:spring-webmvc'
37+
compileOnly 'org.springframework:spring-websocket'
38+
compileOnly 'javax.servlet:javax.servlet-api:4.0.1'
39+
compileOnly 'org.skyscreamer:jsonassert:1.5.0'
40+
41+
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
42+
testImplementation 'org.assertj:assertj-core:3.19.0'
43+
testImplementation 'org.mockito:mockito-core:3.8.0'
44+
testImplementation 'org.skyscreamer:jsonassert:1.5.0'
45+
testImplementation 'org.springframework:spring-webflux'
46+
testImplementation 'org.springframework:spring-test'
47+
testImplementation 'io.projectreactor:reactor-test'
48+
testImplementation 'io.projectreactor.netty:reactor-netty'
49+
testImplementation 'com.squareup.okhttp3:mockwebserver:3.14.9'
50+
testImplementation 'com.fasterxml.jackson.core:jackson-databind'
51+
52+
testRuntime 'org.apache.logging.log4j:log4j-core:2.14.1'
53+
testRuntime 'org.apache.logging.log4j:log4j-slf4j-impl:2.14.1'
54+
}
55+
56+
test {
57+
useJUnitPlatform()
58+
testLogging {
59+
events "passed", "skipped", "failed"
60+
}
61+
}
62+
63+
apply from: "${rootDir}/gradle/publishing.gradle"

0 commit comments

Comments
 (0)