reader.handleStartTag(Tag.INPUT, createInputNamedAttributes(null), 0);
reader.handleEndTag(Tag.FORM, 0);
assertEquals(0, reader.charAttr.getAttributeCount());
assertEquals(13, reader.parseBuffer.size());
DefaultButtonModel model1 = (DefaultButtonModel)getModel((ElementSpec)reader.parseBuffer.get(2));
DefaultButtonModel model2 = (DefaultButtonModel)getModel((ElementSpec)reader.parseBuffer.get(3));
DefaultButtonModel model3 = (DefaultButtonModel)getModel((ElementSpec)reader.parseBuffer.get(4));
DefaultButtonModel model4 = (DefaultButtonModel)getModel((ElementSpec)reader.parseBuffer.get(5));
DefaultButtonModel model5 = (DefaultButtonModel)getModel((ElementSpec)reader.parseBuffer.get(6));
DefaultButtonModel model6 = (DefaultButtonModel)getModel((ElementSpec)reader.parseBuffer.get(7));
DefaultButtonModel model7 = (DefaultButtonModel)getModel((ElementSpec)reader.parseBuffer.get(8));
DefaultButtonModel model8 = (DefaultButtonModel)getModel((ElementSpec)reader.parseBuffer.get(9));
assertNotNull(model1.getGroup());
assertNotNull(model2.getGroup());
assertNotNull(model3.getGroup());
assertNotNull(model4.getGroup());
assertNotNull(model5.getGroup());
assertNotNull(model6.getGroup());
assertNotNull(model7.getGroup());
assertNotNull(model8.getGroup());
assertSame(model1.getGroup(), model4.getGroup());
assertSame(model2.getGroup(), model6.getGroup());
assertSame(model3.getGroup(), model7.getGroup());
assertSame(model5.getGroup(), model8.getGroup());
assertNotSame(model1.getGroup(), model2.getGroup());
assertNotSame(model3.getGroup(), model5.getGroup());
reader.handleStartTag(Tag.FORM, new SimpleAttributeSet(), 0);
reader.handleStartTag(Tag.INPUT, createInputNamedAttributes(name1), 0);
reader.handleStartTag(Tag.INPUT, createInputNamedAttributes(null), 0);
reader.handleStartTag(Tag.INPUT, createInputNamedAttributes(name1), 0);
assertEquals(18, reader.parseBuffer.size());
DefaultButtonModel model9 = (DefaultButtonModel)getModel((ElementSpec)reader.parseBuffer.get(15));
DefaultButtonModel model10 = (DefaultButtonModel)getModel((ElementSpec)reader.parseBuffer.get(16));
DefaultButtonModel model11 = (DefaultButtonModel)getModel((ElementSpec)reader.parseBuffer.get(17));
assertNotNull(model9.getGroup());
assertNotNull(model11.getGroup());
if (!isHarmony()) {
assertNotNull(model10.getGroup());
} else {
assertNull(model10.getGroup());
}
assertNotSame(model9.getGroup(), model1.getGroup());
assertNotSame(model11.getGroup(), model1.getGroup());
}