Add @MongoDbAvailable to new tesdt

This commit is contained in:
Gary Russell
2019-05-30 10:51:30 -04:00
parent ef856b2187
commit b73b720b4a

View File

@@ -26,6 +26,7 @@ import org.junit.Test;
import org.springframework.core.convert.converter.Converter;
import org.springframework.data.convert.WritingConverter;
import org.springframework.data.mongodb.core.SimpleMongoDbFactory;
import org.springframework.integration.mongodb.rules.MongoDbAvailable;
import org.springframework.integration.store.MessageStore;
import org.springframework.messaging.support.GenericMessage;
@@ -47,6 +48,7 @@ public class MongoDbMessageStoreTests extends AbstractMongoDbMessageStoreTests {
}
@Test
@MongoDbAvailable
public void testCustomConverter() throws Exception {
MongoDbMessageStore mongoDbMessageStore =
new MongoDbMessageStore(new SimpleMongoDbFactory(new MongoClient(), "test"));