Examples of waitForEmail()


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


    stream().create(generateStreamName(), "%s | %s", httpSource, mailSink);

    httpSource.ensureReady().postData("Woohoo!");
    MimeMessage result = mailSink.waitForEmail();

    Assert.assertEquals("Woohoo!\r\n", result.getContent());
    Assert.assertEquals("Woohoo!", result.getSubject());

  }
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.