diff --git a/spring-integration-mongodb/src/test/java/org/springframework/integration/mongodb/store/ConfigurableMongoDbMessageGroupStoreTests.java b/spring-integration-mongodb/src/test/java/org/springframework/integration/mongodb/store/ConfigurableMongoDbMessageGroupStoreTests.java index e0ae7246a8..49674bf10d 100644 --- a/spring-integration-mongodb/src/test/java/org/springframework/integration/mongodb/store/ConfigurableMongoDbMessageGroupStoreTests.java +++ b/spring-integration-mongodb/src/test/java/org/springframework/integration/mongodb/store/ConfigurableMongoDbMessageGroupStoreTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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. @@ -117,7 +117,7 @@ public class ConfigurableMongoDbMessageGroupStoreTests extends AbstractMongoDbMe @Test @MongoDbAvailable public void testWithCustomConverter() throws Exception { - this.cleanupCollections(new SimpleMongoDbFactory(new MongoClient(), "test")); + this.cleanupCollections(new SimpleMongoDbFactory(new MongoClient(), "test"), "channelMessages"); ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("ConfigurableMongoDbMessageStore-CustomConverter.xml", this.getClass()); context.refresh(); @@ -131,7 +131,7 @@ public class ConfigurableMongoDbMessageGroupStoreTests extends AbstractMongoDbMe @Test @MongoDbAvailable public void testPriorityChannel() throws Exception { - this.cleanupCollections(new SimpleMongoDbFactory(new MongoClient(), "test")); + this.cleanupCollections(new SimpleMongoDbFactory(new MongoClient(), "test"), "channelMessages"); ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("ConfigurableMongoDbMessageStore-CustomConverter.xml", this.getClass()); context.refresh();