Package org.springframework.xd.test.fixtures

Examples of org.springframework.xd.test.fixtures.NonPollingImapSource


    assertThat(fileSink, eventually(hasContentsThat(equalTo("My body is slim!\r\n"))));
  }

  @Test
  public void testImapIdle() throws Exception {
    NonPollingImapSource mailSource = newNonPollingMailSource();
    FileSink fileSink = newFileSink().binary(true);

    mailSource.ensureStarted();

    stream().create(generateStreamName(), "%s | %s", mailSource, fileSink);

    mailSource.sendEmail("from@foo.com", "The Subject", "My body is slim!");

    assertThat(fileSink, eventually(hasContentsThat(equalTo("My body is slim!\r\n"))));
  }
View Full Code Here


    disposables.add(pollingMailSource);
    return pollingMailSource;
  }

  protected NonPollingImapSource newNonPollingMailSource() {
    NonPollingImapSource nonPollingImapSource = new NonPollingImapSource();
    disposables.add(nonPollingImapSource);
    return nonPollingImapSource;
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.test.fixtures.NonPollingImapSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.