@Test void generateMDNReportThrowOnNullDisposition() { assertThatThrownBy(() -> MDNReport.builder() .reportingUserAgentField(ReportingUserAgent.builder().userAgentName("UA_name").userAgentProduct("UA_product").build()) .finalRecipientField(FinalRecipient.builder().finalRecipient(Text.fromRawText("final_recipient")).build()) .originalRecipientField(OriginalRecipient.builder().originalRecipient(Text.fromRawText("originalRecipient")).build()) .build()) .isInstanceOf(IllegalStateException.class); }
public static Builder builder() { return new Builder(); }
MDNReport { public static Builder builder() { return new Builder(); } }
MDNReport { public static Builder builder() { return new Builder(); } @VisibleForTesting  MDNReport(Optional<ReportingUserAgent> reportingUserAgentField, Optional<Gateway> gatewayField, Optional<OriginalRecipient> originalRecipientField,
                      FinalRecipient finalRecipientField, Optional<OriginalMessageId> originalMessageIdField, Disposition dispositionField,
                      ImmutableList<Error> errorFields, ImmutableList<ExtensionField> extensionFields); }
MDNReport { public static Builder builder() { return new Builder(); } @VisibleForTesting  MDNReport(Optional<ReportingUserAgent> reportingUserAgentField, Optional<Gateway> gatewayField, Optional<OriginalRecipient> originalRecipientField,
                      FinalRecipient finalRecipientField, Optional<OriginalMessageId> originalMessageIdField, Disposition dispositionField,
                      ImmutableList<Error> errorFields, ImmutableList<ExtensionField> extensionFields); static Builder builder(); Optional<ReportingUserAgent> getReportingUserAgentField(); Optional<OriginalRecipient> getOriginalRecipientField(); FinalRecipient getFinalRecipientField(); Optional<OriginalMessageId> getOriginalMessageIdField(); Disposition getDispositionField(); Optional<Gateway> getGatewayField(); List<Error> getErrorFields(); String formattedValue(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); }
MDNReport { public static Builder builder() { return new Builder(); } @VisibleForTesting  MDNReport(Optional<ReportingUserAgent> reportingUserAgentField, Optional<Gateway> gatewayField, Optional<OriginalRecipient> originalRecipientField,
                      FinalRecipient finalRecipientField, Optional<OriginalMessageId> originalMessageIdField, Disposition dispositionField,
                      ImmutableList<Error> errorFields, ImmutableList<ExtensionField> extensionFields); static Builder builder(); Optional<ReportingUserAgent> getReportingUserAgentField(); Optional<OriginalRecipient> getOriginalRecipientField(); FinalRecipient getFinalRecipientField(); Optional<OriginalMessageId> getOriginalMessageIdField(); Disposition getDispositionField(); Optional<Gateway> getGatewayField(); List<Error> getErrorFields(); String formattedValue(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); static final String LINE_END; static final String EXTENSION_DELIMITER; }