@Test void fromShouldThrowWhenSetIsNull() { assertThatThrownBy(() -> EMailers.from(null)) .isInstanceOf(NullPointerException.class) .hasMessage("'emailers' is mandatory"); }
public static EMailers from(Set<EMailer> emailers) { Preconditions.checkNotNull(emailers, "'emailers' is mandatory"); return new EMailers(emailers); }
EMailers implements SerializableMessage { public static EMailers from(Set<EMailer> emailers) { Preconditions.checkNotNull(emailers, "'emailers' is mandatory"); return new EMailers(emailers); } }
EMailers implements SerializableMessage { public static EMailers from(Set<EMailer> emailers) { Preconditions.checkNotNull(emailers, "'emailers' is mandatory"); return new EMailers(emailers); } private  EMailers(Set<EMailer> emailers); }
EMailers implements SerializableMessage { public static EMailers from(Set<EMailer> emailers) { Preconditions.checkNotNull(emailers, "'emailers' is mandatory"); return new EMailers(emailers); } private  EMailers(Set<EMailer> emailers); static EMailers from(Set<EMailer> emailers); @JsonValue Set<EMailer> getEmailers(); @Override String serialize(); }
EMailers implements SerializableMessage { public static EMailers from(Set<EMailer> emailers) { Preconditions.checkNotNull(emailers, "'emailers' is mandatory"); return new EMailers(emailers); } private  EMailers(Set<EMailer> emailers); static EMailers from(Set<EMailer> emailers); @JsonValue Set<EMailer> getEmailers(); @Override String serialize();  }