Uses of Class
ch.martinelli.oss.testcontainers.mailpit.assertions.MessageAssert
Packages that use MessageAssert
-
Uses of MessageAssert in ch.martinelli.oss.testcontainers.mailpit.assertions
Methods in ch.martinelli.oss.testcontainers.mailpit.assertions that return MessageAssertModifier and TypeMethodDescriptionstatic MessageAssertMailpitAssertions.assertThat(Message actual) Creates assertions for a Message.MessagesAssert.element(int index) Returns assertions on a message at the specified index.MessagesAssert.first()Returns assertions on the first message.MailpitContainerAssert.firstMessage()Returns assertions on the first message in the mailbox.MessageAssert.hasAttachmentCount(int expectedCount) Verifies the message has exactly the expected number of attachments.MessageAssert.hasAttachments()Verifies the message has at least one attachment.MessageAssert.hasBccRecipient(String expectedAddress) Verifies the message has the given BCC recipient.MessageAssert.hasCcRecipient(String expectedAddress) Verifies the message has the given CC recipient.MessageAssert.hasNoAttachments()Verifies the message has no attachments.MessageAssert.hasRecipient(String expectedAddress) Verifies the message has the given recipient.MessageAssert.hasRecipientCount(int expectedCount) Verifies the message has exactly the expected number of recipients (To).MessageAssert.hasSnippetContaining(String text) Verifies the message snippet contains the given text.MessageAssert.hasSubject(String expectedSubject) Verifies the message subject matches exactly.MessageAssert.hasSubjectContaining(String substring) Verifies the message subject contains the given substring.Verifies the message has the given tag.Verifies the message has all the given tags.Verifies the sender email address.MessageAssert.isFromName(String expectedName) Verifies the sender has the expected display name.MessageAwaiter.isPresent()Waits for a matching message and returns assertions for it.MessageAssert.isRead()Verifies the message has been read.MessageAssert.isUnread()Verifies the message is unread.MessagesAssert.last()Returns assertions on the last message.MailpitContainerAssert.lastMessage()Returns assertions on the last message in the mailbox.protected MessageAssertMessageAssert.wasCreatedAfter(Instant instant) Verifies the message was created after the given instant.MessageAssert.wasCreatedBefore(Instant instant) Verifies the message was created before the given instant.Method parameters in ch.martinelli.oss.testcontainers.mailpit.assertions with type arguments of type MessageAssertModifier and TypeMethodDescriptionMessagesAssert.allMessagesSatisfy(Consumer<MessageAssert> assertion) Applies MessageAssert assertions on each message.MessagesAssert.hasMessageSatisfying(int index, Consumer<MessageAssert> assertion) Applies MessageAssert assertions on a message at the specified index.