@Test public void textBodyShouldThrowNPEOnNullValue() throws Exception { assertThatThrownBy(() -> VacationResponse.builder().textBody(null)).isInstanceOf(NullPointerException.class); }
public static Builder builder() { return new Builder(); }
VacationResponse { public static Builder builder() { return new Builder(); } }
VacationResponse { public static Builder builder() { return new Builder(); } private  VacationResponse(ValuePatch<String> id, ValuePatch<Boolean> isEnabled, ValuePatch<ZonedDateTime> fromDate, ValuePatch<ZonedDateTime> toDate,
                             ValuePatch<String> textBody, ValuePatch<String> subject, ValuePatch<String> htmlBody, Optional<Boolean> isActivated); }
VacationResponse { public static Builder builder() { return new Builder(); } private  VacationResponse(ValuePatch<String> id, ValuePatch<Boolean> isEnabled, ValuePatch<ZonedDateTime> fromDate, ValuePatch<ZonedDateTime> toDate,
                             ValuePatch<String> textBody, ValuePatch<String> subject, ValuePatch<String> htmlBody, Optional<Boolean> isActivated); static Builder builder(); String getId(); @JsonProperty("isEnabled") boolean isEnabled(); @JsonSerialize(using = OptionalZonedDateTimeSerializer.class) Optional<ZonedDateTime> getFromDate(); @JsonSerialize(using = OptionalZonedDateTimeSerializer.class) Optional<ZonedDateTime> getToDate(); Optional<String> getTextBody(); Optional<String> getSubject(); Optional<String> getHtmlBody(); @JsonIgnore boolean isValid(); @JsonIgnore VacationPatch getPatch(); @JsonProperty("isActivated") Optional<Boolean> isActivated(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
VacationResponse { public static Builder builder() { return new Builder(); } private  VacationResponse(ValuePatch<String> id, ValuePatch<Boolean> isEnabled, ValuePatch<ZonedDateTime> fromDate, ValuePatch<ZonedDateTime> toDate,
                             ValuePatch<String> textBody, ValuePatch<String> subject, ValuePatch<String> htmlBody, Optional<Boolean> isActivated); static Builder builder(); String getId(); @JsonProperty("isEnabled") boolean isEnabled(); @JsonSerialize(using = OptionalZonedDateTimeSerializer.class) Optional<ZonedDateTime> getFromDate(); @JsonSerialize(using = OptionalZonedDateTimeSerializer.class) Optional<ZonedDateTime> getToDate(); Optional<String> getTextBody(); Optional<String> getSubject(); Optional<String> getHtmlBody(); @JsonIgnore boolean isValid(); @JsonIgnore VacationPatch getPatch(); @JsonProperty("isActivated") Optional<Boolean> isActivated(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }