|
|
@ -169,6 +169,14 @@ class GraphQlAutoConfigurationTests {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
|
|
|
void shouldConfigCustomBatchLoaderRegistry() {
|
|
|
|
|
|
|
|
this.contextRunner.withUserConfiguration(CustomBatchLoaderRegistryConfiguration.class).run((context) -> {
|
|
|
|
|
|
|
|
assertThat(context).getBeanNames(BatchLoaderRegistry.class).containsOnly("customBatchLoaderRegistry");
|
|
|
|
|
|
|
|
assertThat(context).hasSingleBean(BatchLoaderRegistry.class);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
static class CustomGraphQlBuilderConfiguration {
|
|
|
|
static class CustomGraphQlBuilderConfiguration {
|
|
|
|
|
|
|
|
|
|
|
@ -253,4 +261,14 @@ class GraphQlAutoConfigurationTests {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
|
|
|
|
static class CustomBatchLoaderRegistryConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|
|
|
|
BatchLoaderRegistry customBatchLoaderRegistry() {
|
|
|
|
|
|
|
|
return mock(BatchLoaderRegistry.class);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|