public class AttributesMessageFormatterTestCase extends TestCaseAbstract {
/**
* Test format with just attributes.
*/
public void testFormatAttributes() {
JDOMFactory factory = new DefaultJDOMFactory();
Attribute attr;
List attributes = new ArrayList();
attr = factory.attribute("device", "PC");
attributes.add(attr);
attr = factory.attribute("pixelsX", "100");
attributes.add(attr);
attr = factory.attribute("pixelsY", "200");
attributes.add(attr);
attr = factory.attribute("pixelDepth", "24");
attributes.add(attr);
attr = factory.attribute("rendering", "color");
attributes.add(attr);
String message = "{value}, {element}, {assetGroup}, {device}, " +
"{rendering}, {pixelDepth}bits, {pixelsX}x{pixelsY}px, " +
"{widthHint}";