提交 52eb425b 编写于 作者: B Bogdan Kobylynskyi

Fix reviewdog styling issues

上级 0b212e6d
...@@ -12,6 +12,7 @@ import org.junit.jupiter.api.extension.ExtendWith; ...@@ -12,6 +12,7 @@ import org.junit.jupiter.api.extension.ExtendWith;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.Objects; import java.util.Objects;
...@@ -105,9 +106,7 @@ class GraphQLCodegenOptionalTest { ...@@ -105,9 +106,7 @@ class GraphQLCodegenOptionalTest {
*/ */
@Test @Test
void generate_ObjectsInsteadOfPrimitives() throws Exception { void generate_ObjectsInsteadOfPrimitives() throws Exception {
mappingConfig.setCustomTypesMapping(new HashMap<String, String>() {{ mappingConfig.setCustomTypesMapping(new HashMap<>(Collections.singletonMap("Int!", "Integer")));
put("Int!", "Integer");
}});
schemaFinder.setIncludePattern("optional-vs-mandatory-types.graphqls"); schemaFinder.setIncludePattern("optional-vs-mandatory-types.graphqls");
generate(); generate();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册