INT-3158: Mark Delayer Int. tests as long-running

JIRA: https://jira.springsource.org/browse/INT-3158
This commit is contained in:
Artem Bilan
2013-10-01 22:57:51 +03:00
parent dd5c9cc18c
commit 28131aab32
8 changed files with 33 additions and 15 deletions

View File

@@ -16,7 +16,7 @@
<delayer id="#{T (org.springframework.integration.gemfire.store.DelayerHandlerRescheduleIntegrationTests).DELAYER_ID}"
input-channel="input"
output-channel="output"
default-delay="500"
default-delay="10000"
message-store="messageStore"/>
</beans:beans>

View File

@@ -23,10 +23,9 @@ import java.util.concurrent.TimeUnit;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
import com.gemstone.gemfire.cache.Cache;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.data.gemfire.CacheFactoryBean;
@@ -38,9 +37,12 @@ import org.springframework.integration.handler.DelayHandler;
import org.springframework.integration.store.MessageGroup;
import org.springframework.integration.store.MessageGroupStore;
import org.springframework.integration.support.MessageBuilder;
import org.springframework.integration.test.support.LongRunningIntegrationTest;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
import org.springframework.util.Assert;
import com.gemstone.gemfire.cache.Cache;
/**
* @author Artem Bilan
@@ -52,6 +54,9 @@ public class DelayerHandlerRescheduleIntegrationTests {
public static Cache cache;
@Rule
public LongRunningIntegrationTest longTests = new LongRunningIntegrationTest();
@BeforeClass
public static void startUp() throws Exception {
CacheFactoryBean cacheFactoryBean = new CacheFactoryBean();
@@ -109,12 +114,12 @@ public class DelayerHandlerRescheduleIntegrationTests {
PollableChannel output = context.getBean("output", PollableChannel.class);
Message<?> message = output.receive(10000);
Message<?> message = output.receive(20000);
assertNotNull(message);
Object payload1 = message.getPayload();
message = output.receive(10000);
message = output.receive(20000);
assertNotNull(message);
Object payload2 = message.getPayload();
assertNotSame(payload1, payload2);