* SmallAttributeSet(Object[])
*/
public void testSmallAttributeSetObjectArray() {
Object[] array = new Object[] { keys[0], values[0], keys[1], values[1], keys[2],
values[2] };
attrSet = sc.new SmallAttributeSet(array);
assertEquals(keys.length, attrSet.getAttributeCount());
for (int i = 0; i < keys.length; i++) {
assertTrue(attrSet.containsAttribute(keys[i], values[i]));
}
// AttributeSet must not depend on the passed array
array[0] = "justKey";
if (BasicSwingTestCase.isHarmony()) {
assertFalse(attrSet.isDefined(array[0]));
}
array = new Object[] { "key", "value" };
assertEquals(3, attrSet.getAttributeCount());
// Empty array
array = new Object[0];
attrSet = sc.new SmallAttributeSet(array);
emptyTest(attrSet);
}