renderLink(writer,
"/Freemail/NewMessage?to=" + freemailPart.getIdentityId(),
String.format("%s@%s.freemail", freemailPart.getEmailLocalPart(), soneName),
- String.format("%s", soneName),
+ String.format("%s\n%s@%s.freemail", soneName, freemailPart.getEmailLocalPart(), freemailPart.getFreemailId()),
"in-sone");
}
assertThat(linkNode.attributes().asList(), containsInAnyOrder(
new Attribute("href", "/Freemail/NewMessage?to=" + SONE_IDENTITY),
new Attribute("class", "in-sone"),
- new Attribute("title", "Sone")
+ new Attribute("title", "Sone\n" + SONE_FREEMAIL)
));
assertThat(linkNode.text(), is("sone@Sone.freemail"));
}