@Test public void testIndexValidation() { String message = "index must be >= 0"; Tab tab = new Tab("testTab", Layout.THREECOLUMN, new Long(0)); tab.setTabIndex(-1); ClassValidator<Tab> validator = new ClassValidator<Tab>(Tab.class); InvalidValue[] invalidValues = validator.getInvalidValues(tab); assertEquals(message, 1, invalidValues.length); assertEquals(message, Tab.TAB_INDEX_MESSAGE, invalidValues[0].getMessage()); }
public void setTabIndex(final int inTabIndex) { this.tabIndex = inTabIndex; }
Tab extends DomainEntity implements Serializable { public void setTabIndex(final int inTabIndex) { this.tabIndex = inTabIndex; } }
Tab extends DomainEntity implements Serializable { public void setTabIndex(final int inTabIndex) { this.tabIndex = inTabIndex; } protected  Tab();  Tab(final TabTemplate inTemplate);  Tab(final String inTabName, final Layout inTabLayout);  Tab(final String inTabName, final Layout inTabLayout, final Long inId); }
Tab extends DomainEntity implements Serializable { public void setTabIndex(final int inTabIndex) { this.tabIndex = inTabIndex; } protected  Tab();  Tab(final TabTemplate inTemplate);  Tab(final String inTabName, final Layout inTabLayout);  Tab(final String inTabName, final Layout inTabLayout, final Long inId); int getTabIndex(); void setTabIndex(final int inTabIndex); String getTabName(); void setTabName(final String inTabName); Layout getTabLayout(); void setTabLayout(final Layout inTabLayout); List<Gadget> getGadgets(); @SuppressWarnings("unused") void setGadgets(final List<Gadget> inGadgets); TabTemplate getTemplate(); }
Tab extends DomainEntity implements Serializable { public void setTabIndex(final int inTabIndex) { this.tabIndex = inTabIndex; } protected  Tab();  Tab(final TabTemplate inTemplate);  Tab(final String inTabName, final Layout inTabLayout);  Tab(final String inTabName, final Layout inTabLayout, final Long inId); int getTabIndex(); void setTabIndex(final int inTabIndex); String getTabName(); void setTabName(final String inTabName); Layout getTabLayout(); void setTabLayout(final Layout inTabLayout); List<Gadget> getGadgets(); @SuppressWarnings("unused") void setGadgets(final List<Gadget> inGadgets); TabTemplate getTemplate(); @Transient
    static final String TAB_INDEX_MESSAGE; }