|
|
@ -56,7 +56,7 @@ public class ElasticsearchDataAutoConfigurationTests {
|
|
|
|
ElasticsearchAutoConfiguration.class,
|
|
|
|
ElasticsearchAutoConfiguration.class,
|
|
|
|
ElasticsearchDataAutoConfiguration.class);
|
|
|
|
ElasticsearchDataAutoConfiguration.class);
|
|
|
|
this.context.refresh();
|
|
|
|
this.context.refresh();
|
|
|
|
asssertHasSingleBean(ElasticsearchTemplate.class);
|
|
|
|
assertHasSingleBean(ElasticsearchTemplate.class);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
@ -70,7 +70,7 @@ public class ElasticsearchDataAutoConfigurationTests {
|
|
|
|
ElasticsearchAutoConfiguration.class,
|
|
|
|
ElasticsearchAutoConfiguration.class,
|
|
|
|
ElasticsearchDataAutoConfiguration.class);
|
|
|
|
ElasticsearchDataAutoConfiguration.class);
|
|
|
|
this.context.refresh();
|
|
|
|
this.context.refresh();
|
|
|
|
asssertHasSingleBean(SimpleElasticsearchMappingContext.class);
|
|
|
|
assertHasSingleBean(SimpleElasticsearchMappingContext.class);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
@ -84,10 +84,10 @@ public class ElasticsearchDataAutoConfigurationTests {
|
|
|
|
ElasticsearchAutoConfiguration.class,
|
|
|
|
ElasticsearchAutoConfiguration.class,
|
|
|
|
ElasticsearchDataAutoConfiguration.class);
|
|
|
|
ElasticsearchDataAutoConfiguration.class);
|
|
|
|
this.context.refresh();
|
|
|
|
this.context.refresh();
|
|
|
|
asssertHasSingleBean(ElasticsearchConverter.class);
|
|
|
|
assertHasSingleBean(ElasticsearchConverter.class);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void asssertHasSingleBean(Class<?> type) {
|
|
|
|
private void assertHasSingleBean(Class<?> type) {
|
|
|
|
assertThat(this.context.getBeanNamesForType(type)).hasSize(1);
|
|
|
|
assertThat(this.context.getBeanNamesForType(type)).hasSize(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|