@Test public void forMailShouldBeBasedOnTheName() throws Exception { String name = "toto"; assertThat( MailKey.forMail(FakeMail.builder() .name(name) .build())) .isEqualTo(new MailKey(name)); }
public static MailKey forMail(Mail mail) { return new MailKey(mail.getName()); }
MailKey { public static MailKey forMail(Mail mail) { return new MailKey(mail.getName()); } }
MailKey { public static MailKey forMail(Mail mail) { return new MailKey(mail.getName()); } MailKey(String value); }
MailKey { public static MailKey forMail(Mail mail) { return new MailKey(mail.getName()); } MailKey(String value); static MailKey forMail(Mail mail); String asString(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString(); }
MailKey { public static MailKey forMail(Mail mail) { return new MailKey(mail.getName()); } MailKey(String value); static MailKey forMail(Mail mail); String asString(); @Override final boolean equals(Object o); @Override final int hashCode(); @Override String toString();  }