|
|
|
|
@ -22,6 +22,7 @@ import java.util.EnumSet;
@@ -22,6 +22,7 @@ import java.util.EnumSet;
|
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
import com.mongodb.MongoClient; |
|
|
|
|
import de.flapdoodle.embed.mongo.MongodExecutable; |
|
|
|
|
import de.flapdoodle.embed.mongo.config.IMongodConfig; |
|
|
|
|
import de.flapdoodle.embed.mongo.config.Storage; |
|
|
|
|
import de.flapdoodle.embed.mongo.distribution.Feature; |
|
|
|
|
@ -192,6 +193,13 @@ public class EmbeddedMongoAutoConfigurationTests {
@@ -192,6 +193,13 @@ public class EmbeddedMongoAutoConfigurationTests {
|
|
|
|
|
assertThat(downloadConfig.getUserAgent()).isEqualTo("Test User Agent"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void shutdownHookIsNotRegistered() { |
|
|
|
|
load(); |
|
|
|
|
assertThat(this.context.getBean(MongodExecutable.class).isRegisteredJobKiller()) |
|
|
|
|
.isFalse(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void assertVersionConfiguration(String configuredVersion, |
|
|
|
|
String expectedVersion) { |
|
|
|
|
this.context = new AnnotationConfigApplicationContext(); |
|
|
|
|
|