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

Commit 1c30ed4

Browse files
author
Tad Sanden
committed
fix test
1 parent 380f2e6 commit 1c30ed4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

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

33
import org.junit.After;
4+
import org.springframework.boot.SpringApplication;
45
import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration;
6+
import org.springframework.boot.context.event.ApplicationReadyEvent;
57
import org.springframework.boot.test.util.TestPropertyValues;
68
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
79
import org.springframework.context.annotation.AnnotationConfigRegistry;
@@ -59,6 +61,7 @@ protected void load(Class<?> config, String... environment) {
5961

6062
loadServletContext();
6163
getContext().refresh();
64+
getContext().publishEvent(new ApplicationReadyEvent(new SpringApplication(), new String[0], getContext()));
6265
}
6366

6467
private void loadServletContext() {

0 commit comments

Comments
 (0)