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

Commit 2f9c4c2

Browse files
authored
Merge pull request #149 from graphql-java-kickstart/bugfix/148-missing-setter-async-mode
Added missing setter async mode
2 parents 139611c + 48ce8b3 commit 2f9c4c2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

graphql-spring-boot-autoconfigure/src/main/java/com/oembedler/moon/graphql/boot/GraphQLServletProperties.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,8 @@ public void setMapping(String mapping) {
8181
public boolean isAsyncModeEnabled() {
8282
return asyncModeEnabled;
8383
}
84+
85+
public void setAsyncModeEnabled(boolean asyncModeEnabled) {
86+
this.asyncModeEnabled = asyncModeEnabled;
87+
}
8488
}

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.oembedler.moon.graphql.boot.GraphQLServletProperties;
44
import org.junit.Test;
55

6+
import static org.junit.Assert.assertEquals;
67
import static org.junit.Assert.assertTrue;
78

89
/**
@@ -30,13 +31,13 @@ private void verifyCorsMapping(String mapping, String expected) {
3031
GraphQLServletProperties servletProperties = new GraphQLServletProperties();
3132
servletProperties.setMapping(mapping);
3233

33-
assertTrue(String.format("Expected mapping '%s' to return cors mapping '%s'", mapping, expected), servletProperties.getCorsMapping().equals(expected));
34+
assertEquals(String.format("Expected mapping '%s' to return cors mapping '%s'", mapping, expected), servletProperties.getCorsMapping(), expected);
3435
}
3536

3637
private void verifyServletMapping(String mapping, String expected) {
3738
GraphQLServletProperties servletProperties = new GraphQLServletProperties();
3839
servletProperties.setMapping(mapping);
3940

40-
assertTrue(String.format("Expected mapping '%s' to return servlet mapping '%s'", mapping, expected), servletProperties.getServletMapping().equals(expected));
41+
assertEquals(String.format("Expected mapping '%s' to return servlet mapping '%s'", mapping, expected), servletProperties.getServletMapping(), expected);
4142
}
42-
}
43+
}

0 commit comments

Comments
 (0)