@Test void buildShouldThrownWhenQuotaRatioIsNull() { assertThatThrownBy(() -> QuotaRatioAsJson.builder() .user("user") .build()) .isInstanceOf(NullPointerException.class); }
public static Builder builder() { return new Builder(); }
QuotaRatioAsJson { public static Builder builder() { return new Builder(); } }
QuotaRatioAsJson { public static Builder builder() { return new Builder(); } private  QuotaRatioAsJson(String user, Optional<String> domain, QuotaRatio quotaRatio); }
QuotaRatioAsJson { public static Builder builder() { return new Builder(); } private  QuotaRatioAsJson(String user, Optional<String> domain, QuotaRatio quotaRatio); static Builder builder(); @JsonProperty(JsonMessageConstants.USER) String getUser(); @JsonProperty(JsonMessageConstants.DOMAIN) Optional<String> getDomain(); @JsonProperty(JsonMessageConstants.QUOTA_RATIO) double getMaxQuotaRatio(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); }
QuotaRatioAsJson { public static Builder builder() { return new Builder(); } private  QuotaRatioAsJson(String user, Optional<String> domain, QuotaRatio quotaRatio); static Builder builder(); @JsonProperty(JsonMessageConstants.USER) String getUser(); @JsonProperty(JsonMessageConstants.DOMAIN) Optional<String> getDomain(); @JsonProperty(JsonMessageConstants.QUOTA_RATIO) double getMaxQuotaRatio(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString();  }