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

Commit 7c0f8c5

Browse files
committed
Fix unit tests
1 parent cd70e5c commit 7c0f8c5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import org.springframework.context.annotation.AnnotationConfigRegistry;
88
import org.springframework.context.support.AbstractApplicationContext;
99
import org.springframework.mock.web.MockServletContext;
10-
import org.springframework.web.context.WebApplicationContext;
1110
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
1211

1312
import javax.servlet.ServletContext;

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

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

33
import org.junit.After;
4-
import org.springframework.boot.test.util.EnvironmentTestUtils;
54
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
65
import org.springframework.context.annotation.AnnotationConfigRegistry;
76
import org.springframework.context.support.AbstractApplicationContext;
@@ -41,9 +40,9 @@ protected void load(Class<?> config, String... environment) {
4140
throw new RuntimeException(e);
4241
}
4342

44-
if (environment != null && environment.length > 0) {
45-
EnvironmentTestUtils.addEnvironment(getContext(), environment);
46-
}
43+
// if (environment != null && environment.length > 0) {
44+
// EnvironmentTestUtils.addEnvironment(getContext(), environment);
45+
// }
4746

4847
getRegistry().register(config);
4948
getRegistry().register(autoConfiguration);

0 commit comments

Comments
 (0)