@Test public void addsCustomProvenanceCreationMethod() { DerivedSchemaContainer instance = createWithProvenance(new CustomProvenance(newArrayList())); String schema = instance.getSchema(); assertThat(schema, containsString( "type rootTypeMutations{\n" + " setCustomProvenance(customProvenance: CustomProvenanceInput!): Message!" + " @setCustomProvenanceMutation(dataSet: \"rootType\")\n" )); }
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();  }