@Test void testHashCodeDifferent() { MessageOptions messageOptionsOne = new MessageOptions( "subject", "bodyHtml", "bodyText", "htmlPlaceholder", "textPlaceholder", "successHtml"); MessageOptions messageOptionsTwo = new MessageOptions( "new-subject", "bodyHtml", "bodyText", "htmlPlaceholder", "textPlaceholder", "successHtml"); assertNotEquals(messageOptionsOne.hashCode(), messageOptionsTwo.hashCode()); }
@Override public int hashCode() { return Objects.hash( subject, bodyHtml, bodyText, bodyHtmlUrlPlaceholder, bodyTextUrlPlaceholder, successHtml); }
MessageOptions { @Override public int hashCode() { return Objects.hash( subject, bodyHtml, bodyText, bodyHtmlUrlPlaceholder, bodyTextUrlPlaceholder, successHtml); } }
MessageOptions { @Override public int hashCode() { return Objects.hash( subject, bodyHtml, bodyText, bodyHtmlUrlPlaceholder, bodyTextUrlPlaceholder, successHtml); } MessageOptions(@JsonProperty("subject") String subject,
                        @JsonProperty("bodyHtmlFile") String bodyHtml,
                        @JsonProperty("bodyTextFile") String bodyText,
                        @JsonProperty("bodyHtmlUrlPlaceholder") String bodyHtmlUrlPlaceholder,
                        @JsonProperty("bodyTextUrlPlaceholder") String bodyTextUrlPlaceholder,
                        @JsonProperty("successHtmlFile") String successHtml); }
MessageOptions { @Override public int hashCode() { return Objects.hash( subject, bodyHtml, bodyText, bodyHtmlUrlPlaceholder, bodyTextUrlPlaceholder, successHtml); } MessageOptions(@JsonProperty("subject") String subject,
                        @JsonProperty("bodyHtmlFile") String bodyHtml,
                        @JsonProperty("bodyTextFile") String bodyText,
                        @JsonProperty("bodyHtmlUrlPlaceholder") String bodyHtmlUrlPlaceholder,
                        @JsonProperty("bodyTextUrlPlaceholder") String bodyTextUrlPlaceholder,
                        @JsonProperty("successHtmlFile") String successHtml); String getSubject(); String getBodyHtml(); String getBodyText(); String getBodyHtmlUrlPlaceholder(); String getBodyTextUrlPlaceholder(); String getSuccessHtml(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
MessageOptions { @Override public int hashCode() { return Objects.hash( subject, bodyHtml, bodyText, bodyHtmlUrlPlaceholder, bodyTextUrlPlaceholder, successHtml); } MessageOptions(@JsonProperty("subject") String subject,
                        @JsonProperty("bodyHtmlFile") String bodyHtml,
                        @JsonProperty("bodyTextFile") String bodyText,
                        @JsonProperty("bodyHtmlUrlPlaceholder") String bodyHtmlUrlPlaceholder,
                        @JsonProperty("bodyTextUrlPlaceholder") String bodyTextUrlPlaceholder,
                        @JsonProperty("successHtmlFile") String successHtml); String getSubject(); String getBodyHtml(); String getBodyText(); String getBodyHtmlUrlPlaceholder(); String getBodyTextUrlPlaceholder(); String getSuccessHtml(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }