CronTrigger expressions may now contain any amount of whitespace between fields. Also, removed inaccessible core TestUtils dependency from the mail module.

This commit is contained in:
Mark Fisher
2008-10-09 13:57:43 +00:00
parent 49361dba5c
commit ad4d94560b
2 changed files with 5 additions and 4 deletions

View File

@@ -26,10 +26,11 @@ import javax.mail.internet.MimeMessage;
import org.easymock.classextension.EasyMock;
import org.junit.Test;
import org.springframework.core.task.SimpleAsyncTaskExecutor;
import org.springframework.integration.channel.QueueChannel;
import org.springframework.integration.message.Message;
import org.springframework.integration.scheduling.SimpleTaskScheduler;
import org.springframework.integration.scheduling.TaskScheduler;
import org.springframework.integration.util.TestUtils;
/**
* @author Jonas Partner
@@ -41,7 +42,7 @@ public class SubscribableMailSourceTests {
javax.mail.Message message = EasyMock.createMock(MimeMessage.class);
StubFolderConnection folderConnection = new StubFolderConnection(message);
QueueChannel channel = new QueueChannel();
TaskScheduler scheduler = TestUtils.createTaskScheduler(5);
TaskScheduler scheduler = new SimpleTaskScheduler(new SimpleAsyncTaskExecutor());
scheduler.start();
ListeningMailSource mailSource = new ListeningMailSource(folderConnection);
mailSource.setTaskScheduler(scheduler);