@Test void buildShouldThrowWhenMailetIsNull() { assertThatThrownBy(() -> MessageAlteringUtils.from(null).build()) .isInstanceOf(NullPointerException.class) .hasMessage("'mailet' is mandatory"); }
public static Builder from(RedirectNotify mailet) { return new Builder(mailet); }
MessageAlteringUtils { public static Builder from(RedirectNotify mailet) { return new Builder(mailet); } }
MessageAlteringUtils { public static Builder from(RedirectNotify mailet) { return new Builder(mailet); } private  MessageAlteringUtils(RedirectNotify mailet, Mail originalMail); }
MessageAlteringUtils { public static Builder from(RedirectNotify mailet) { return new Builder(mailet); } private  MessageAlteringUtils(RedirectNotify mailet, Mail originalMail); static Builder from(RedirectNotify mailet); }
MessageAlteringUtils { public static Builder from(RedirectNotify mailet) { return new Builder(mailet); } private  MessageAlteringUtils(RedirectNotify mailet, Mail originalMail); static Builder from(RedirectNotify mailet);  }