@Test void buildShouldThrowWhenDateIsNull() { assertThatThrownBy(() -> MessageFullView.builder() .id(TestMessageId.of(1)) .blobId(BlobId.of("blobId")) .threadId("threadId") .fluentMailboxIds() .headers(ImmutableMap.of()) .subject("subject") .size(123) .build()) .isInstanceOf(IllegalStateException.class); }
public static Builder builder() { return new Builder(); }
MessageFullView extends MessageFastView { public static Builder builder() { return new Builder(); } }
MessageFullView extends MessageFastView { public static Builder builder() { return new Builder(); } @VisibleForTesting  MessageFullView(MessageId id,
                    BlobId blobId,
                    String threadId,
                    ImmutableList<MailboxId> mailboxIds,
                    Optional<String> inReplyToMessageId,
                    boolean hasAttachment,
                    ImmutableMap<String, String> headers,
                    Optional<Emailer> from,
                    ImmutableList<Emailer> to,
                    ImmutableList<Emailer> cc,
                    ImmutableList<Emailer> bcc,
                    ImmutableList<Emailer> replyTo,
                    String subject,
                    Instant date,
                    Number size,
                    PreviewDTO preview,
                    Optional<String> textBody,
                    Optional<String> htmlBody,
                    ImmutableList<Attachment> attachments,
                    ImmutableMap<BlobId, SubMessage> attachedMessages,
                    Keywords keywords); }
MessageFullView extends MessageFastView { public static Builder builder() { return new Builder(); } @VisibleForTesting  MessageFullView(MessageId id,
                    BlobId blobId,
                    String threadId,
                    ImmutableList<MailboxId> mailboxIds,
                    Optional<String> inReplyToMessageId,
                    boolean hasAttachment,
                    ImmutableMap<String, String> headers,
                    Optional<Emailer> from,
                    ImmutableList<Emailer> to,
                    ImmutableList<Emailer> cc,
                    ImmutableList<Emailer> bcc,
                    ImmutableList<Emailer> replyTo,
                    String subject,
                    Instant date,
                    Number size,
                    PreviewDTO preview,
                    Optional<String> textBody,
                    Optional<String> htmlBody,
                    ImmutableList<Attachment> attachments,
                    ImmutableMap<BlobId, SubMessage> attachedMessages,
                    Keywords keywords); static Builder builder(); boolean isHasAttachment(); Optional<String> getTextBody(); Optional<String> getHtmlBody(); ImmutableList<Attachment> getAttachments(); ImmutableMap<BlobId, SubMessage> getAttachedMessages(); }
MessageFullView extends MessageFastView { public static Builder builder() { return new Builder(); } @VisibleForTesting  MessageFullView(MessageId id,
                    BlobId blobId,
                    String threadId,
                    ImmutableList<MailboxId> mailboxIds,
                    Optional<String> inReplyToMessageId,
                    boolean hasAttachment,
                    ImmutableMap<String, String> headers,
                    Optional<Emailer> from,
                    ImmutableList<Emailer> to,
                    ImmutableList<Emailer> cc,
                    ImmutableList<Emailer> bcc,
                    ImmutableList<Emailer> replyTo,
                    String subject,
                    Instant date,
                    Number size,
                    PreviewDTO preview,
                    Optional<String> textBody,
                    Optional<String> htmlBody,
                    ImmutableList<Attachment> attachments,
                    ImmutableMap<BlobId, SubMessage> attachedMessages,
                    Keywords keywords); static Builder builder(); boolean isHasAttachment(); Optional<String> getTextBody(); Optional<String> getHtmlBody(); ImmutableList<Attachment> getAttachments(); ImmutableMap<BlobId, SubMessage> getAttachedMessages();  }