Add @MongoDbAvailable to new tesdt
This commit is contained in:
@@ -26,6 +26,7 @@ import org.junit.Test;
|
|||||||
import org.springframework.core.convert.converter.Converter;
|
import org.springframework.core.convert.converter.Converter;
|
||||||
import org.springframework.data.convert.WritingConverter;
|
import org.springframework.data.convert.WritingConverter;
|
||||||
import org.springframework.data.mongodb.core.SimpleMongoDbFactory;
|
import org.springframework.data.mongodb.core.SimpleMongoDbFactory;
|
||||||
|
import org.springframework.integration.mongodb.rules.MongoDbAvailable;
|
||||||
import org.springframework.integration.store.MessageStore;
|
import org.springframework.integration.store.MessageStore;
|
||||||
import org.springframework.messaging.support.GenericMessage;
|
import org.springframework.messaging.support.GenericMessage;
|
||||||
|
|
||||||
@@ -47,6 +48,7 @@ public class MongoDbMessageStoreTests extends AbstractMongoDbMessageStoreTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@MongoDbAvailable
|
||||||
public void testCustomConverter() throws Exception {
|
public void testCustomConverter() throws Exception {
|
||||||
MongoDbMessageStore mongoDbMessageStore =
|
MongoDbMessageStore mongoDbMessageStore =
|
||||||
new MongoDbMessageStore(new SimpleMongoDbFactory(new MongoClient(), "test"));
|
new MongoDbMessageStore(new SimpleMongoDbFactory(new MongoClient(), "test"));
|
||||||
|
|||||||
Reference in New Issue
Block a user