Index

A B C D E F G H I L M N P R S T W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

address() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Address
Returns the value of the address record component.
Address - Record Class in ch.martinelli.oss.testcontainers.mailpit
Represents an email address with optional display name.
Address(String, String) - Constructor for record class ch.martinelli.oss.testcontainers.mailpit.Address
Creates an instance of a Address record class.
AddressAssert - Class in ch.martinelli.oss.testcontainers.mailpit.assertions
AssertJ assertions for Address.
AddressAssert(Address) - Constructor for class ch.martinelli.oss.testcontainers.mailpit.assertions.AddressAssert
 
addressContains(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.AddressAssert
Verifies the email address contains the given substring.
allAreFrom(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Verifies that all messages are from the given sender.
allAreRead() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Verifies that all messages are read.
allAreUnread() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Verifies that all messages are unread.
allMessagesSatisfy(Consumer<MessageAssert>) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Applies MessageAssert assertions on each message.
assertThat(Address) - Static method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitAssertions
Creates assertions for an Address.
assertThat(MailpitContainer) - Static method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitAssertions
Creates assertions for a MailpitContainer.
assertThat(Message) - Static method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitAssertions
Creates assertions for a Message.
assertThat(List<Message>) - Static method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitAssertions
Creates assertions for a list of Messages.
attachmentCount() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the number of attachments.
attachmentsNode() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the attachmentsNode record component.
awaitMessage() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Creates a message awaiter to wait for and assert on messages.
awaitMessageCount(int) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Waits until the mailbox contains exactly the expected number of messages.
awaitMessages() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Waits until the mailbox contains at least one message.

B

bcc() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the bcc record component.

C

cc() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the cc record component.
cc(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAwaiter
Filters messages by CC recipient address.
ch.martinelli.oss.testcontainers.mailpit - package ch.martinelli.oss.testcontainers.mailpit
 
ch.martinelli.oss.testcontainers.mailpit.assertions - package ch.martinelli.oss.testcontainers.mailpit.assertions
 
containsMessageFrom(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Verifies that the list contains a message from the given sender.
containsMessageTo(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Verifies that the list contains a message to the given recipient.
containsMessageWithSubject(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Verifies that the list contains a message with the given subject.
created() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the created record component.

D

deleteAllMessages() - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitClient
Deletes all messages from Mailpit.
deleteMessage(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitClient
Deletes a specific message.
deleteMessages(List<String>) - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitClient
Deletes specific messages by their IDs.

E

element(int) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Returns assertions on a message at the specified index.
equals(Object) - Method in record class ch.martinelli.oss.testcontainers.mailpit.Address
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class ch.martinelli.oss.testcontainers.mailpit.MailpitProperties
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Indicates whether some other object is "equal to" this one.

F

filteredOnPredicate(Predicate<Message>) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Filters messages using a predicate and returns a new MessagesAssert.
filteredOnRecipient(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Filters messages by recipient and returns a new MessagesAssert.
filteredOnSender(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Filters messages by sender and returns a new MessagesAssert.
filteredOnSubject(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Filters messages by subject and returns a new MessagesAssert.
first() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Returns assertions on the first message.
firstMessage() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Returns assertions on the first message in the mailbox.
from() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the from record component.
from(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAwaiter
Filters messages by sender address.
fromAddress() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Returns assertions for the sender address.

G

getAllMessages() - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitClient
Retrieves all messages from Mailpit.
getClient() - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitContainer
Returns a MailpitClient for interacting with the Mailpit REST API.
getContainerConnectionDetails(ContainerConnectionSource<MailpitContainer>) - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitContainerConnectionDetailsFactory
 
getHost() - Method in interface ch.martinelli.oss.testcontainers.mailpit.MailpitConnectionDetails
Returns the SMTP host address.
getHttpPort() - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitContainer
Returns the mapped HTTP port for the web interface and REST API.
getHttpUrl() - Method in interface ch.martinelli.oss.testcontainers.mailpit.MailpitConnectionDetails
Returns the base URL for the Mailpit web interface and REST API.
getHttpUrl() - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitContainer
Returns the base URL for the Mailpit web interface and REST API.
getMessage() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Returns the underlying message for further inspection.
getMessage(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitClient
Retrieves a specific message by ID.
getMessageCount() - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitClient
Returns the number of messages in Mailpit.
getMessageHtml(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitClient
Retrieves the HTML body of a message.
getMessagePlain(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitClient
Retrieves the plain text body of a message.
getMessageSource(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitClient
Retrieves the raw source of a message.
getPort() - Method in interface ch.martinelli.oss.testcontainers.mailpit.MailpitConnectionDetails
Returns the SMTP port.
getSmtpHost() - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitContainer
Returns the SMTP host address.
getSmtpPort() - Method in class ch.martinelli.oss.testcontainers.mailpit.MailpitContainer
Returns the mapped SMTP port for sending emails.

H

hasAddress(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.AddressAssert
Verifies the email address.
hasAttachmentCount(int) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message has exactly the expected number of attachments.
hasAttachments() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message has at least one attachment.
hasBccRecipient(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message has the given BCC recipient.
hasCcRecipient(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message has the given CC recipient.
hasDisplayName() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.AddressAssert
Verifies the address has a display name.
hashCode() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Address
Returns a hash code value for this object.
hashCode() - Method in record class ch.martinelli.oss.testcontainers.mailpit.MailpitProperties
Returns a hash code value for this object.
hashCode() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns a hash code value for this object.
hasMessageCount(int) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Verifies that the mailbox contains exactly the expected number of messages.
hasMessageFrom(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Verifies that there is a message from the given sender.
hasMessages() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Verifies that the mailbox contains at least one message.
hasMessageSatisfying(int, Consumer<MessageAssert>) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Applies MessageAssert assertions on a message at the specified index.
hasMessageTo(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Verifies that there is a message sent to the given recipient.
hasMessageWithSubject(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Verifies that there is a message with the given subject.
hasName(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.AddressAssert
Verifies the display name.
hasNoAttachments() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message has no attachments.
hasNoDisplayName() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.AddressAssert
Verifies the address has no display name.
hasNoMessages() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Verifies that the mailbox is empty.
hasRecipient(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message has the given recipient.
hasRecipientCount(int) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message has exactly the expected number of recipients (To).
hasSnippetContaining(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message snippet contains the given text.
hasSubject(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message subject matches exactly.
hasSubjectContaining(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message subject contains the given substring.
hasTag(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message has the given tag.
hasTags(String...) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message has all the given tags.
host() - Method in record class ch.martinelli.oss.testcontainers.mailpit.MailpitProperties
Returns the value of the host record component.
HTTP_PORT - Static variable in class ch.martinelli.oss.testcontainers.mailpit.MailpitContainer
 
httpUrl() - Method in record class ch.martinelli.oss.testcontainers.mailpit.MailpitProperties
Returns the value of the httpUrl record component.

I

id() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the id record component.
isAbsent() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAwaiter
Asserts that no matching message exists (does not wait).
isFrom(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the sender email address.
isFromName(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the sender has the expected display name.
isInDomain(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.AddressAssert
Verifies the email address is in the expected domain.
isPresent() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAwaiter
Waits for a matching message and returns assertions for it.
isRead() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message has been read.
isRunning() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Verifies that the container is running.
isUnread() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message is unread.

L

last() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
Returns assertions on the last message.
lastMessage() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Returns assertions on the last message in the mailbox.

M

MailpitAssertions - Class in ch.martinelli.oss.testcontainers.mailpit.assertions
Entry point for AssertJ-style assertions for Mailpit.
MailpitAutoConfiguration - Class in ch.martinelli.oss.testcontainers.mailpit
Auto-configuration for Mailpit.
MailpitAutoConfiguration() - Constructor for class ch.martinelli.oss.testcontainers.mailpit.MailpitAutoConfiguration
 
MailpitClient - Class in ch.martinelli.oss.testcontainers.mailpit
Client for interacting with the Mailpit REST API.
MailpitClient(String) - Constructor for class ch.martinelli.oss.testcontainers.mailpit.MailpitClient
 
MailpitConnectionDetails - Interface in ch.martinelli.oss.testcontainers.mailpit
Connection details for a Mailpit service.
MailpitContainer - Class in ch.martinelli.oss.testcontainers.mailpit
Testcontainers implementation for Mailpit.
MailpitContainer() - Constructor for class ch.martinelli.oss.testcontainers.mailpit.MailpitContainer
 
MailpitContainer(String) - Constructor for class ch.martinelli.oss.testcontainers.mailpit.MailpitContainer
 
MailpitContainer(DockerImageName) - Constructor for class ch.martinelli.oss.testcontainers.mailpit.MailpitContainer
 
MailpitContainerAssert - Class in ch.martinelli.oss.testcontainers.mailpit.assertions
AssertJ assertions for MailpitContainer.
MailpitContainerAssert(MailpitContainer) - Constructor for class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
 
MailpitContainerConnectionDetailsFactory - Class in ch.martinelli.oss.testcontainers.mailpit
ContainerConnectionDetailsFactory to create MailpitConnectionDetails from a MailpitContainer.
MailpitContainerConnectionDetailsFactory() - Constructor for class ch.martinelli.oss.testcontainers.mailpit.MailpitContainerConnectionDetailsFactory
 
MailpitException - Exception in ch.martinelli.oss.testcontainers.mailpit
Exception thrown when an error occurs while interacting with Mailpit.
MailpitException(String) - Constructor for exception ch.martinelli.oss.testcontainers.mailpit.MailpitException
 
MailpitException(String, Throwable) - Constructor for exception ch.martinelli.oss.testcontainers.mailpit.MailpitException
 
MailpitProperties - Record Class in ch.martinelli.oss.testcontainers.mailpit
Configuration properties for Mailpit.
MailpitProperties() - Constructor for record class ch.martinelli.oss.testcontainers.mailpit.MailpitProperties
Creates a new MailpitProperties with default values.
MailpitProperties(String, int, String) - Constructor for record class ch.martinelli.oss.testcontainers.mailpit.MailpitProperties
Creates an instance of a MailpitProperties record class.
matching(Predicate<Message>) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAwaiter
Filters messages by a custom predicate.
Message - Record Class in ch.martinelli.oss.testcontainers.mailpit
Represents an email message from Mailpit.
Message(String, String, Address, List<Address>, List<Address>, List<Address>, List<Address>, String, int, Instant, boolean, JsonNode, String, List<String>) - Constructor for record class ch.martinelli.oss.testcontainers.mailpit.Message
Creates an instance of a Message record class.
MessageAssert - Class in ch.martinelli.oss.testcontainers.mailpit.assertions
AssertJ assertions for Message.
MessageAssert(Message) - Constructor for class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
 
MessageAwaiter - Class in ch.martinelli.oss.testcontainers.mailpit.assertions
Fluent builder for awaiting and asserting on messages.
MessageAwaiter(MailpitClient, Duration, Duration) - Constructor for class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAwaiter
 
messageId() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the messageId record component.
messages() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Returns assertions on all messages in the mailbox.
MessagesAssert - Class in ch.martinelli.oss.testcontainers.mailpit.assertions
AssertJ assertions for a list of Messages.
MessagesAssert(List<Message>) - Constructor for class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
 

N

name() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Address
Returns the value of the name record component.
newAbstractIterableAssert(Iterable<? extends Message>) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
 

P

port() - Method in record class ch.martinelli.oss.testcontainers.mailpit.MailpitProperties
Returns the value of the port record component.

R

read() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the read record component.
recipients() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the list of recipients as a convenience method.
replyTo() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the replyTo record component.

S

size() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the size record component.
SMTP_PORT - Static variable in class ch.martinelli.oss.testcontainers.mailpit.MailpitContainer
 
snippet() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the snippet record component.
subject() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the subject record component.

T

tags() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the tags record component.
to() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns the value of the to record component.
to(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAwaiter
Filters messages by recipient address.
toAssert(Message, String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessagesAssert
 
toString() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Address
Returns a string representation of this record class.
toString() - Method in record class ch.martinelli.oss.testcontainers.mailpit.MailpitProperties
Returns a string representation of this record class.
toString() - Method in record class ch.martinelli.oss.testcontainers.mailpit.Message
Returns a string representation of this record class.

W

wasCreatedAfter(Instant) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message was created after the given instant.
wasCreatedBefore(Instant) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Verifies the message was created before the given instant.
withAttachments() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAwaiter
Filters messages that have attachments.
withoutAttachments() - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAwaiter
Filters messages that have no attachments.
withPollInterval(Duration) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Configures the poll interval for await operations.
withSubject(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAwaiter
Filters messages by exact subject match.
withSubjectContaining(String) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAwaiter
Filters messages by subject containing a substring.
withTimeout(Duration) - Method in class ch.martinelli.oss.testcontainers.mailpit.assertions.MailpitContainerAssert
Configures the timeout for await operations.
A B C D E F G H I L M N P R S T W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form