|
|
@ -58,10 +58,10 @@ public class IntegrationGraphEndpointAutoConfigurationTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void runWhenSpringIntegrationIsNotEnabledShouldNotHaveEndpointBean() {
|
|
|
|
public void runWhenSpringIntegrationIsNotEnabledShouldNotHaveEndpointBean() {
|
|
|
|
ApplicationContextRunner noSiRunner = new ApplicationContextRunner()
|
|
|
|
ApplicationContextRunner noSpringIntegrationRunner = new ApplicationContextRunner()
|
|
|
|
.withConfiguration(AutoConfigurations.of(
|
|
|
|
.withConfiguration(AutoConfigurations.of(
|
|
|
|
IntegrationGraphEndpointAutoConfiguration.class));
|
|
|
|
IntegrationGraphEndpointAutoConfiguration.class));
|
|
|
|
noSiRunner.run((context) -> {
|
|
|
|
noSpringIntegrationRunner.run((context) -> {
|
|
|
|
assertThat(context).doesNotHaveBean(IntegrationGraphEndpoint.class);
|
|
|
|
assertThat(context).doesNotHaveBean(IntegrationGraphEndpoint.class);
|
|
|
|
assertThat(context).doesNotHaveBean(IntegrationGraphServer.class);
|
|
|
|
assertThat(context).doesNotHaveBean(IntegrationGraphServer.class);
|
|
|
|
});
|
|
|
|
});
|
|
|
|