Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 514fa38

Browse files
committed
Added JacksonAutoConfiguration to GraphQLTest
1 parent 04f6a05 commit 514fa38

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

example-graphql-tools/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ repositories {
2929
dependencies {
3030
compile(project(":graphql-spring-boot-starter"))
3131
compile(project(":graphiql-spring-boot-starter"))
32+
compile(project(":voyager-spring-boot-starter"))
3233
compile "com.graphql-java-kickstart:graphql-java-tools:$LIB_GRAPHQL_JAVA_TOOLS_VER"
3334

3435
compile("org.springframework.boot:spring-boot-starter-web:$LIB_SPRING_BOOT_VER")

example-graphql-tools/src/main/resources/application.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ spring:
33
name: graphql-java-tools-app
44
server:
55
port: 9000
6+
servlet:
7+
context-path: /abc
68
graphiql:
79
headers:
810
Authorization: "Bearer 05bd9a5f3fe0408f89520946b0fe1b06"

graphql-spring-boot-autoconfigure/src/test/java/com/oembedler/moon/graphql/boot/test/AbstractAutoConfigurationTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.oembedler.moon.graphql.boot.test;
22

33
import org.junit.After;
4+
import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration;
45
import org.springframework.boot.test.util.TestPropertyValues;
56
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
67
import org.springframework.context.annotation.AnnotationConfigRegistry;
@@ -55,6 +56,7 @@ protected void load(Class<?> config, String... environment) {
5556

5657
getRegistry().register(config);
5758
getRegistry().register(autoConfiguration);
59+
getRegistry().register(JacksonAutoConfiguration.class);
5860

5961
loadServletContext();
6062
getContext().refresh();

0 commit comments

Comments
 (0)