public List<SimpleBatchedField> fields() {
return Arrays.asList(new SimpleBatchedField(), new SimpleBatchedField());
}
}
@Test
<BUG>@SneakyThrows
public void batchedDataFetcher() {
</BUG>
GraphQLObjectType nestedObject = GraphQLAnnotations.object(SimpleBatchedField.class);
assertEquals(nestedObject.getFieldDefinition("a").getType(), GraphQLString);

public List<SimpleBatchedField> fields() {
return Arrays.asList(new SimpleBatchedField(), new SimpleBatchedField());
}
}
@Test
public void batchedDataFetcher() throws Throwable {
GraphQLObjectType nestedObject = GraphQLAnnotations.object(SimpleBatchedField.class);
assertEquals(nestedObject.getFieldDefinition("a").getType(), GraphQLString);
