AbstractActionExt extends AbstractAction implements ItemListener { public void setLongDescription(String desc) { putValue(Action.LONG_DESCRIPTION, desc); if (desc != null && getShortDescription() == null) { setShortDescription(desc); } } AbstractActionExt();  AbstractActionExt(AbstractActionExt action);  AbstractActionExt(String name);  AbstractActionExt(String name, Icon icon);  AbstractActionExt(String name, String command);  AbstractActionExt(String name, String command, Icon icon); String getShortDescription(); void setShortDescription(String desc); String getLongDescription(); void setLongDescription(String desc); Icon getSmallIcon(); void setSmallIcon(Icon icon); Icon getLargeIcon(); void setLargeIcon(Icon icon); void setName(String name); String getName(); void setMnemonic(String mnemonic); void setMnemonic(int mnemonic); int getMnemonic(); void setActionCommand(String key); String getActionCommand(); KeyStroke getAccelerator(); void setAccelerator(KeyStroke key); void setGroup(Object group); Object getGroup(); void dispose(); boolean isStateAction(); void setStateAction(); void setStateAction(boolean state); boolean isSelected(); void setSelected(boolean newValue); @Override String toString(); @Override void itemStateChanged(ItemEvent e); static final String LARGE_ICON; static final String GROUP; static final String IS_STATE; }
@Test public void testLongDescriptionLoop() { AbstractActionExt action = createStateAction(); action.setLongDescription("some"); }