use of org.springframework.integration.mail.AbstractMailReceiver in project spring-integration by spring-projects.
the class InboundChannelAdapterParserTests method imapWithMaxFetchSize.
@Test
public void imapWithMaxFetchSize() {
AbstractMailReceiver receiver = this.getReceiver("imapWithMaxFetchSize");
assertEquals(ImapMailReceiver.class, receiver.getClass());
Object value = new DirectFieldAccessor(receiver).getPropertyValue("maxFetchSize");
assertEquals(22, value);
}
use of org.springframework.integration.mail.AbstractMailReceiver in project spring-integration by spring-projects.
the class InboundChannelAdapterParserTests method imapIdleWithoutStoreUri.
@Test
public void imapIdleWithoutStoreUri() {
AbstractMailReceiver receiver = this.getReceiver("imapIdleWithoutStoreUri");
assertEquals(ImapMailReceiver.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 imapShouldMarkMessagesAsRead.
@Test
public void imapShouldMarkMessagesAsRead() {
AbstractMailReceiver receiver = this.getReceiver("imapShouldMarkAsReadTrue");
assertEquals(ImapMailReceiver.class, receiver.getClass());
DirectFieldAccessor receiverAccessor = new DirectFieldAccessor(receiver);
Boolean value = (Boolean) receiverAccessor.getPropertyValue("shouldMarkMessagesAsRead");
assertTrue(value);
assertEquals(Boolean.TRUE, receiverAccessor.getPropertyValue("embeddedPartsAsBytes"));
assertNull(receiverAccessor.getPropertyValue("headerMapper"));
}
use of org.springframework.integration.mail.AbstractMailReceiver in project spring-integration by spring-projects.
the class InboundChannelAdapterParserTests method imapShouldDeleteTrue.
@Test
public void imapShouldDeleteTrue() {
AbstractMailReceiver receiver = this.getReceiver("imapShouldDeleteTrue");
assertEquals(ImapMailReceiver.class, receiver.getClass());
DirectFieldAccessor receiverAccessor = new DirectFieldAccessor(receiver);
Boolean value = (Boolean) receiverAccessor.getPropertyValue("shouldDeleteMessages");
assertTrue(value);
assertEquals(Boolean.TRUE, receiverAccessor.getPropertyValue("simpleContent"));
}
Aggregations