File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/test/java/com/kobylynskyi/graphql/codegen Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1212import java .io .File ;
1313import java .io .IOException ;
1414import java .nio .file .Paths ;
15+ import java .util .Collections ;
1516import java .util .HashMap ;
1617import java .util .Objects ;
1718
@@ -105,9 +106,7 @@ void generate_OptionalFieldInInterfaceAndMandatoryInType() throws Exception {
105106 */
106107 @ Test
107108 void generate_ObjectsInsteadOfPrimitives () throws Exception {
108- mappingConfig .setCustomTypesMapping (new HashMap <String , String >() {{
109- put ("Int!" , "Integer" );
110- }});
109+ mappingConfig .setCustomTypesMapping (new HashMap <>(Collections .singletonMap ("Int!" , "Integer" )));
111110 schemaFinder .setIncludePattern ("optional-vs-mandatory-types.graphqls" );
112111
113112 generate ();
You can’t perform that action at this time.
0 commit comments