Examples of ensureStarted()


Examples of org.springframework.xd.test.fixtures.MailSink.ensureStarted()

  @Test
  public void testMailSink() throws Exception {
    HttpSource httpSource = newHttpSource();
    MailSink mailSink = newMailSink();

    mailSink.ensureStarted()
        .to("'\"some.one@domain.com\"'")
        .subject("payload");


    stream().create(generateStreamName(), "%s | %s", httpSource, mailSink);
View Full Code Here

Examples of org.springframework.xd.test.fixtures.NonPollingImapSource.ensureStarted()

  @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!");
View Full Code Here

Examples of org.springframework.xd.test.fixtures.PollingMailSource.ensureStarted()

  @Test
  public void testImapPoll() throws Exception {
    PollingMailSource pollingMailSource = newPollingMailSource();
    FileSink fileSink = newFileSink().binary(true);

    pollingMailSource.ensureStarted();

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

    pollingMailSource.sendEmail("from@foo.com", "The Subject", "My body is slim!");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.