@Test void testInterfacesAreCovered() { final RuntimeWiring wiring = RuntimeWiring.newRuntimeWiring() .type(TypeRuntimeWiring.newTypeWiring("Product") .typeResolver(env -> null) .build()) .build(); final GraphQLSchema transformed = Federation.transform(interfacesSDL, wiring) .resolveEntityType(env -> null) .fetchEntities(environment -> null) .build(); final GraphQLUnionType entityType = (GraphQLUnionType) transformed.getType(_Entity.typeName); final Iterable<String> unionTypes = entityType .getTypes() .stream() .map(GraphQLNamedType::getName) .sorted() .collect(Collectors.toList()); assertIterableEquals(Arrays.asList("Book", "Movie", "Page"), unionTypes); }
@NotNull public static SchemaTransformer transform(final GraphQLSchema schema) { return new SchemaTransformer(schema); }
Federation { @NotNull public static SchemaTransformer transform(final GraphQLSchema schema) { return new SchemaTransformer(schema); } }
Federation { @NotNull public static SchemaTransformer transform(final GraphQLSchema schema) { return new SchemaTransformer(schema); } private  Federation(); }
Federation { @NotNull public static SchemaTransformer transform(final GraphQLSchema schema) { return new SchemaTransformer(schema); } private  Federation(); @NotNull static SchemaTransformer transform(final GraphQLSchema schema); static SchemaTransformer transform(final TypeDefinitionRegistry typeRegistry, final RuntimeWiring runtimeWiring); static SchemaTransformer transform(final TypeDefinitionRegistry typeRegistry); static SchemaTransformer transform(final String sdl, final RuntimeWiring runtimeWiring); static SchemaTransformer transform(final Reader sdl, final RuntimeWiring runtimeWiring); static SchemaTransformer transform(final File sdl, final RuntimeWiring runtimeWiring); static SchemaTransformer transform(final String sdl); static SchemaTransformer transform(final Reader sdl); static SchemaTransformer transform(final File sdl); }
Federation { @NotNull public static SchemaTransformer transform(final GraphQLSchema schema) { return new SchemaTransformer(schema); } private  Federation(); @NotNull static SchemaTransformer transform(final GraphQLSchema schema); static SchemaTransformer transform(final TypeDefinitionRegistry typeRegistry, final RuntimeWiring runtimeWiring); static SchemaTransformer transform(final TypeDefinitionRegistry typeRegistry); static SchemaTransformer transform(final String sdl, final RuntimeWiring runtimeWiring); static SchemaTransformer transform(final Reader sdl, final RuntimeWiring runtimeWiring); static SchemaTransformer transform(final File sdl, final RuntimeWiring runtimeWiring); static SchemaTransformer transform(final String sdl); static SchemaTransformer transform(final Reader sdl); static SchemaTransformer transform(final File sdl);  }