Added @Ignore to Redis and Mongo tests for now. Will be looking into using @Rule

This commit is contained in:
Oleg Zhurakousky
2011-07-28 08:02:46 -04:00
parent 354b4ca65b
commit 17999e198e
5 changed files with 13 additions and 11 deletions

View File

@@ -16,6 +16,7 @@
package org.springframework.integration.mongodb.store;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
@@ -31,7 +32,7 @@ import com.mongodb.Mongo;
*/
public class MongoMessageStoreTests {
@Test
@Test @Ignore
public void addGetWithStringPayload() throws Exception {
Mongo mongo = new Mongo();
MongoMessageStore store = new MongoMessageStore(mongo, "test");
@@ -41,8 +42,8 @@ public class MongoMessageStoreTests {
assertNotNull(store.getMessage(message.getHeaders().getId()));
}
@SuppressWarnings("unchecked")
@Test
@Test @Ignore
public void addGetWithObjectDefaultConstructorPayload() throws Exception {
Mongo mongo = new Mongo();
MongoMessageStore store = new MongoMessageStore(mongo, "test");

View File

@@ -15,6 +15,7 @@
*/
package org.springframework.integration.redis.channel;
import org.junit.Ignore;
import org.junit.Test;
import org.mockito.Mockito;
import org.springframework.beans.factory.BeanFactory;
@@ -32,7 +33,7 @@ import static org.mockito.Mockito.verify;
*/
public class SubscribableRedisChannelTests {
@Test
@Test @Ignore
public void pubSubChanneTest() throws Exception{
JedisConnectionFactory connectionFactory = new JedisConnectionFactory();
connectionFactory.setPort(7379);

View File

@@ -35,7 +35,7 @@ import org.springframework.integration.test.util.TestUtils;
*/
public class RedisChannelParserTests {
@Test
@Test @Ignore
public void testPubSubChannelConfig(){
ApplicationContext context = new ClassPathXmlApplicationContext("RedisChannelParserTests-context.xml", this.getClass());
SubscribableChannel redisChannel = context.getBean("redisChannel", SubscribableChannel.class);
@@ -46,7 +46,7 @@ public class RedisChannelParserTests {
}
@Test
@Ignore
@Ignore
public void testPubSubChannelUsage(){
ApplicationContext context = new ClassPathXmlApplicationContext("RedisChannelParserTests-context.xml", this.getClass());
SubscribableChannel redisChannel = context.getBean("redisChannel", SubscribableChannel.class);

View File

@@ -42,7 +42,7 @@ public class RedisInboundChannelAdapterParserTests {
@Autowired
private ApplicationContext context;
@Test
@Test @Ignore
public void validateConfiguration() {
RedisInboundChannelAdapter adapter = context.getBean("adapter", RedisInboundChannelAdapter.class);
assertEquals("adapter", adapter.getComponentName());
@@ -54,7 +54,7 @@ public class RedisInboundChannelAdapterParserTests {
assertEquals(converterBean, accessor.getPropertyValue("messageConverter"));
}
@Test
@Test @Ignore
public void testInboundChannelAdapterMessaging() {
JedisConnectionFactory connectionFactory = new JedisConnectionFactory();
connectionFactory.setPort(7379);

View File

@@ -44,7 +44,7 @@ public class RedisOutboundChannelAdapterParserTests {
@Autowired
private ApplicationContext context;
@Test
@Test @Ignore
public void validateConfiguration() {
EventDrivenConsumer adapter = context.getBean("outboundAdapter", EventDrivenConsumer.class);
RedisPublishingMessageHandler handler = (RedisPublishingMessageHandler)
@@ -55,8 +55,8 @@ public class RedisOutboundChannelAdapterParserTests {
Object converterBean = context.getBean("testConverter");
assertEquals(converterBean, accessor.getPropertyValue("messageConverter"));
}
@Test
@Test @Ignore
public void testOutboundChannelAdapterMessaging(){
MessageChannel sendChannel = context.getBean("sendChannel", MessageChannel.class);
sendChannel.send(new GenericMessage<String>("Hello Redis"));