}
}
public void testAddition() {
JCommandToggleButton newButton = new JCommandToggleButton("New",
new EmptyResizableIcon(32));
this.ribbonBand.addRibbonGalleryButtons(GALLERY_NAME, "Group 0",
newButton);
assertEquals(this.gallery.getButtonGroupCount(), 4);
assertEquals(this.gallery.getButtonCount(), 41);
assertEquals(this.gallery.getButtonGroup("Group 0").size(), 11);
assertEquals(this.gallery.getButtonGroup("Group 1").size(), 10);
assertEquals(this.gallery.getButtonGroup("Group 2").size(), 10);
assertEquals(this.gallery.getButtonGroup("Group 3").size(), 10);
JCommandToggleButton newButton2 = new JCommandToggleButton("New 2",
new EmptyResizableIcon(32));
this.ribbonBand.addRibbonGalleryButtons(GALLERY_NAME,
"Group non-existent", newButton2);
assertEquals(this.gallery.getButtonGroupCount(), 4);
assertEquals(this.gallery.getButtonCount(), 41);
assertEquals(this.gallery.getButtonGroup("Group 0").size(), 11);
assertEquals(this.gallery.getButtonGroup("Group 1").size(), 10);
assertEquals(this.gallery.getButtonGroup("Group 2").size(), 10);
assertEquals(this.gallery.getButtonGroup("Group 3").size(), 10);
assertTrue(this.gallery.getButtonGroup("Group 0").contains(newButton));
JCommandToggleButton newButton3 = new JCommandToggleButton("New 3",
new EmptyResizableIcon(32));
JCommandToggleButton newButton4 = new JCommandToggleButton("New 4",
new EmptyResizableIcon(32));
this.ribbonBand.addRibbonGalleryButtons(GALLERY_NAME, "Group 2",
newButton3, newButton4);
assertEquals(this.gallery.getButtonGroupCount(), 4);
assertEquals(this.gallery.getButtonCount(), 43);