@Test public void addProvenanceSchemaForField() throws Exception { DerivedSchemaContainer instance = createWithProvenance(CustomProvenance.getCustomProvenance( ImmutableMap.of("fields", Lists.newArrayList( ImmutableMap.of( "uri", NAME_URI, "isList", false, "valueType", STRING ) )) )); String schema = instance.getSchema(); assertThat(schema, containsString( "input rootTypeProvenanceInput{\n" + " schema_name: xsd_stringPropertyInput!" )); }
public String getSchema() { StringBuilder total = new StringBuilder(); addRootType(total); addRootTypeMutations(total); for (DerivedTypeSchemaGenerator derivedObjectTypeSchemaGenerator : types.values()) { total.append(derivedObjectTypeSchemaGenerator.getSchema()); } for (DerivedTypeSchemaGenerator derivedObjectTypeSchemaGenerator : topLevelTypes.values()) { total.append(derivedObjectTypeSchemaGenerator.getSchema()); } return total.toString(); }
DerivedSchemaContainer { public String getSchema() { StringBuilder total = new StringBuilder(); addRootType(total); addRootTypeMutations(total); for (DerivedTypeSchemaGenerator derivedObjectTypeSchemaGenerator : types.values()) { total.append(derivedObjectTypeSchemaGenerator.getSchema()); } for (DerivedTypeSchemaGenerator derivedObjectTypeSchemaGenerator : topLevelTypes.values()) { total.append(derivedObjectTypeSchemaGenerator.getSchema()); } return total.toString(); } }
DerivedSchemaContainer { public String getSchema() { StringBuilder total = new StringBuilder(); addRootType(total); addRootTypeMutations(total); for (DerivedTypeSchemaGenerator derivedObjectTypeSchemaGenerator : types.values()) { total.append(derivedObjectTypeSchemaGenerator.getSchema()); } for (DerivedTypeSchemaGenerator derivedObjectTypeSchemaGenerator : topLevelTypes.values()) { total.append(derivedObjectTypeSchemaGenerator.getSchema()); } return total.toString(); } DerivedSchemaContainer(String rootType, GraphQlNameGenerator graphQlNameGenerator,
                         PaginationArgumentsHelper argumentsHelper,
                         ReadOnlyChecker readOnlyChecker, CustomProvenance customProvenance); }
DerivedSchemaContainer { public String getSchema() { StringBuilder total = new StringBuilder(); addRootType(total); addRootTypeMutations(total); for (DerivedTypeSchemaGenerator derivedObjectTypeSchemaGenerator : types.values()) { total.append(derivedObjectTypeSchemaGenerator.getSchema()); } for (DerivedTypeSchemaGenerator derivedObjectTypeSchemaGenerator : topLevelTypes.values()) { total.append(derivedObjectTypeSchemaGenerator.getSchema()); } return total.toString(); } DerivedSchemaContainer(String rootType, GraphQlNameGenerator graphQlNameGenerator,
                         PaginationArgumentsHelper argumentsHelper,
                         ReadOnlyChecker readOnlyChecker, CustomProvenance customProvenance); String getSchema(); boolean hasMutationTypes(); }
DerivedSchemaContainer { public String getSchema() { StringBuilder total = new StringBuilder(); addRootType(total); addRootTypeMutations(total); for (DerivedTypeSchemaGenerator derivedObjectTypeSchemaGenerator : types.values()) { total.append(derivedObjectTypeSchemaGenerator.getSchema()); } for (DerivedTypeSchemaGenerator derivedObjectTypeSchemaGenerator : topLevelTypes.values()) { total.append(derivedObjectTypeSchemaGenerator.getSchema()); } return total.toString(); } DerivedSchemaContainer(String rootType, GraphQlNameGenerator graphQlNameGenerator,
                         PaginationArgumentsHelper argumentsHelper,
                         ReadOnlyChecker readOnlyChecker, CustomProvenance customProvenance); String getSchema(); boolean hasMutationTypes();  }