use of org.springframework.integration.mail.AbstractMailReceiver in project spring-integration by spring-projects.
the class InboundChannelAdapterParserTests method pop3ShouldDeleteFalse.
@Test
public void pop3ShouldDeleteFalse() {
AbstractMailReceiver receiver = this.getReceiver("pop3ShouldDeleteFalse");
assertEquals(Pop3MailReceiver.class, receiver.getClass());
Boolean value = (Boolean) new DirectFieldAccessor(receiver).getPropertyValue("shouldDeleteMessages");
assertFalse(value);
}
use of org.springframework.integration.mail.AbstractMailReceiver in project spring-integration by spring-projects.
the class InboundChannelAdapterParserTests method pop3WithoutStoreUri.
// ==================== INT-1162 ====================
@Test
public void pop3WithoutStoreUri() {
AbstractMailReceiver receiver = this.getReceiver("pop3WithoutStoreUri");
assertEquals(Pop3MailReceiver.class, receiver.getClass());
Object url = new DirectFieldAccessor(receiver).getPropertyValue("url");
assertNull(url);
}
use of org.springframework.integration.mail.AbstractMailReceiver in project spring-integration by spring-projects.
the class InboundChannelAdapterParserTests method pop3ShouldDeleteFalseProperty.
@Test
public void pop3ShouldDeleteFalseProperty() {
AbstractMailReceiver receiver = this.getReceiver("pop3ShouldDeleteFalseProperty");
assertEquals(Pop3MailReceiver.class, receiver.getClass());
Boolean value = (Boolean) new DirectFieldAccessor(receiver).getPropertyValue("shouldDeleteMessages");
assertFalse(value);
}
use of org.springframework.integration.mail.AbstractMailReceiver in project spring-integration by spring-projects.
the class InboundChannelAdapterParserTests method pop3WithAuthenticator.
// ==================== INT-1159 ====================
@Test
public void pop3WithAuthenticator() {
AbstractMailReceiver receiver = this.getReceiver("pop3WithAuthenticator");
assertEquals(Pop3MailReceiver.class, receiver.getClass());
Object authenticator = new DirectFieldAccessor(receiver).getPropertyValue("javaMailAuthenticator");
assertNotNull(authenticator);
assertEquals(context.getBean("testAuthenticator"), authenticator);
}
use of org.springframework.integration.mail.AbstractMailReceiver in project spring-integration by spring-projects.
the class InboundChannelAdapterParserTests method imapShouldDeleteFalseProperty.
@Test
public void imapShouldDeleteFalseProperty() {
AbstractMailReceiver receiver = this.getReceiver("imapShouldDeleteFalseProperty");
assertEquals(ImapMailReceiver.class, receiver.getClass());
Boolean value = (Boolean) new DirectFieldAccessor(receiver).getPropertyValue("shouldDeleteMessages");
assertFalse(value);
}
Aggregations