AbstractAccordion extends AbstractTogglePanel { @Override @Attribute public String getActiveItem() { return super.getActiveItem(); } protected  AbstractAccordion(); @Override String getFamily(); @Override @Attribute String getActiveItem(); @Attribute abstract String getItemActiveLeftIcon(); @Attribute abstract String getItemInactiveLeftIcon(); @Attribute abstract String getItemDisabledLeftIcon(); @Attribute abstract String getItemActiveRightIcon(); @Attribute abstract String getItemInactiveRightIcon(); @Attribute abstract String getItemDisabledRightIcon(); @Attribute abstract String getWidth(); @Attribute abstract String getHeight(); @Attribute abstract String getItemActiveHeaderClass(); @Attribute abstract String getItemDisabledHeaderClass(); @Attribute abstract String getItemInactiveHeaderClass(); @Attribute abstract String getItemContentClass(); @Attribute abstract String getItemHeaderClass(); @Attribute(events = @EventName(value = "itemchange", defaultEvent = true)) abstract String getOnitemchange(); @Attribute(events = @EventName("beforeitemchange")) abstract String getOnbeforeitemchange(); static final String COMPONENT_TYPE; static final String COMPONENT_FAMILY; }
@Test @Ignore public void testDefaultActiveItem() { Assert.assertNotNull(accordion); Assert.assertEquals(ITEM1, accordion.getActiveItem()); accordion.setActiveItem(ITEM2); Assert.assertEquals(ITEM2, accordion.getActiveItem()); }