|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 2012-2018 the original author or authors.
|
|
|
|
|
* Copyright 2012-2019 the original author or authors.
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
@ -47,6 +47,12 @@ public class MongoReactiveDataAutoConfigurationTests {
|
|
|
|
|
.hasSingleBean(ReactiveMongoTemplate.class));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void gridFsTemplateExists() {
|
|
|
|
|
this.contextRunner.run((context) -> assertThat(context)
|
|
|
|
|
.hasSingleBean(ReactiveGridFsTemplate.class));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void backsOffIfMongoClientBeanIsNotPresent() {
|
|
|
|
|
ApplicationContextRunner runner = new ApplicationContextRunner()
|
|
|
|
@ -57,10 +63,4 @@ public class MongoReactiveDataAutoConfigurationTests {
|
|
|
|
|
.doesNotHaveBean(MongoReactiveDataAutoConfiguration.class));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void gridFsTemplateExists() {
|
|
|
|
|
this.contextRunner.run((context) -> assertThat(context)
|
|
|
|
|
.hasSingleBean(ReactiveGridFsTemplate.class));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|