@Test public void buildShouldWorkWhenAllMandatoryFieldsAreGiven() { SetError expected = new SetError(SetError.Type.ERROR, Optional.empty(), Optional.empty()); SetError setError = SetError.builder() .type(SetError.Type.ERROR) .build(); assertThat(setError).isEqualToComparingFieldByField(expected); }
public static Builder builder() { return new Builder(); }
SetError { public static Builder builder() { return new Builder(); } }
SetError { public static Builder builder() { return new Builder(); } @VisibleForTesting  SetError(Type type, Optional<String> description, Optional<ImmutableSet<MessageProperty>> properties); protected  SetError(SetError setError); }
SetError { public static Builder builder() { return new Builder(); } @VisibleForTesting  SetError(Type type, Optional<String> description, Optional<ImmutableSet<MessageProperty>> properties); protected  SetError(SetError setError); static Builder builder(); @JsonSerialize String getType(); @JsonSerialize Optional<String> getDescription(); @JsonSerialize Optional<ImmutableSet<MessageProperty>> getProperties(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
SetError { public static Builder builder() { return new Builder(); } @VisibleForTesting  SetError(Type type, Optional<String> description, Optional<ImmutableSet<MessageProperty>> properties); protected  SetError(SetError setError); static Builder builder(); @JsonSerialize String getType(); @JsonSerialize Optional<String> getDescription(); @JsonSerialize Optional<ImmutableSet<MessageProperty>> getProperties(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }