Class MailhogContainer

java.lang.Object
org.jenkinsci.test.acceptance.docker.DockerContainer
org.jenkinsci.test.acceptance.docker.fixtures.MailhogContainer
All Implemented Interfaces:
Closeable, AutoCloseable

public class MailhogContainer extends org.jenkinsci.test.acceptance.docker.DockerContainer
  • Constructor Details

    • MailhogContainer

      public MailhogContainer()
  • Method Details

    • getSmtpHost

      public String getSmtpHost()
    • getSmtpPort

      public int getSmtpPort()
    • assertMail

      public void assertMail(Pattern expectedSubject, String recipient, Pattern body)
    • assertMail

      public void assertMail(Pattern subject, String recipient)
      Checks that the mail has arrived.