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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assertMail
(Pattern subject, String recipient) Checks that the mail has arrived.void
assertMail
(Pattern expectedSubject, String recipient, Pattern body) int
Methods inherited from class org.jenkinsci.test.acceptance.docker.DockerContainer
assertRunning, close, cp, getCid, getIpAddress, getLogfile, getPid, inspect, ipBound, ipUdpBound, ipv6Enabled, port, resource, sharingHostDockerService, toString, udpPort
-
Constructor Details
-
MailhogContainer
public MailhogContainer()
-
-
Method Details
-
getSmtpHost
-
getSmtpPort
public int getSmtpPort() -
assertMail
-
assertMail
Checks that the mail has arrived.
-