faces.put("upHovering", b.getUpHoveringFace());
faces.put("downHovering", b.getDownHoveringFace());
// Set all faces as text.
for (Map.Entry<String, Face> entry : faces.entrySet()) {
Face f = entry.getValue();
String faceName = entry.getKey();
f.setText(faceName);
}
for (Map.Entry<String, Face> entry : faces.entrySet()) {
Face f = entry.getValue();
String faceName = entry.getKey();
assertEquals(f.getText(), faceName);
}
// Set all faces as HTML
for (Map.Entry<String, Face> entry : faces.entrySet()) {
Face f = entry.getValue();
String faceName = entry.getKey();
f.setHTML("<b>" + faceName + "</b>");
}
for (Map.Entry<String, Face> entry : faces.entrySet()) {
Face f = entry.getValue();
String faceName = entry.getKey();
assertEquals(f.getText(), faceName);
assertEquals(StringCase.toLower(f.getHTML()), "<b>" + StringCase.toLower(faceName)
+ "</b>");
}
}