Merge branch '1.5.x'

This commit is contained in:
Stephane Nicoll
2017-09-07 10:49:50 +02:00
2 changed files with 10 additions and 1 deletions

View File

@@ -45,6 +45,13 @@ public class ElasticsearchDataAutoConfigurationTests {
}
}
@Test
public void templateBackOffWithNoClient() {
this.context = new AnnotationConfigApplicationContext(
ElasticsearchDataAutoConfiguration.class);
assertThat(this.context.getBeansOfType(ElasticsearchTemplate.class)).isEmpty();
}
@Test
public void templateExists() {
this.context = new AnnotationConfigApplicationContext();