for (int i = 0; i < attrs.length; i++) {
Attr attr = attrs[i];
assertNotNull("Attribute attr", attr);
}
AttrCompare attrCompare = new AttrCompare();
for (int i = 0; i < attrs.length; i++) {
for (int j = i + 1; j < attrs.length; j++) {
Attr attr0 = attrs[i];
Attr attr1 = attrs[j];
assertTrue(attr0 + " < " + attr1, attrCompare.compare(attr0, attr1) < 0);
assertTrue(attr1 + " < " + attr0, attrCompare.compare(attr1, attr0) > 0);
}
}
}