INT-1839 fixed AbstractMailReceiver to be compliant with MailReceiver interface and throw javax.mail.MessagingException

This commit is contained in:
Oleg Zhurakousky
2011-03-24 07:54:17 -04:00
parent 26951c3a59
commit faee3ec1a6
2 changed files with 2 additions and 7 deletions

View File

@@ -46,7 +46,6 @@ import org.mockito.stubbing.Answer;
import org.springframework.beans.DirectFieldAccessor;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.integration.MessagingException;
import org.springframework.integration.channel.DirectChannel;
import org.springframework.integration.channel.QueueChannel;
import org.springframework.integration.core.PollableChannel;
@@ -418,7 +417,7 @@ public class ImapMailReceiverTests {
public void run(){
try {
receiver.receive();
} catch (MessagingException e) {
} catch (javax.mail.MessagingException e) {
if (e.getCause() instanceof NullPointerException){
e.printStackTrace();
failed.getAndIncrement();