@Test( expected = IndexOutOfBoundsException.class ) public void testGetElementException() { CrosstabOtherGroup crosstab = new CrosstabOtherGroup(); crosstab.getElement( 4 ); }
public Element getElement( final int index ) { switch ( index ) { case 0: return header; case 1: return getBody(); case 2: return footer; default: throw new IndexOutOfBoundsException(); } }
CrosstabOtherGroup extends Group { public Element getElement( final int index ) { switch ( index ) { case 0: return header; case 1: return getBody(); case 2: return footer; default: throw new IndexOutOfBoundsException(); } } }
CrosstabOtherGroup extends Group { public Element getElement( final int index ) { switch ( index ) { case 0: return header; case 1: return getBody(); case 2: return footer; default: throw new IndexOutOfBoundsException(); } } CrosstabOtherGroup();  CrosstabOtherGroup( final GroupBody body );  CrosstabOtherGroup( final CrosstabCellBody body );  CrosstabOtherGroup( final CrosstabColumnGroupBody body ); }
CrosstabOtherGroup extends Group { public Element getElement( final int index ) { switch ( index ) { case 0: return header; case 1: return getBody(); case 2: return footer; default: throw new IndexOutOfBoundsException(); } } CrosstabOtherGroup();  CrosstabOtherGroup( final GroupBody body );  CrosstabOtherGroup( final CrosstabCellBody body );  CrosstabOtherGroup( final CrosstabColumnGroupBody body ); GroupHeader getHeader(); void setHeader( final GroupHeader header ); GroupFooter getFooter(); void setFooter( final GroupFooter footer ); CrosstabOtherGroup clone(); CrosstabOtherGroup derive( final boolean preserveElementInstanceIds ); Element getElement( final int index ); int getElementCount(); void setElementAt( final int index, final Element element ); String getField(); void setField( final String field ); void setBody( final GroupBody body ); boolean isGroupChange( final DataRow dataRow ); List<SortConstraint> getSortingConstraint(); }
CrosstabOtherGroup extends Group { public Element getElement( final int index ) { switch ( index ) { case 0: return header; case 1: return getBody(); case 2: return footer; default: throw new IndexOutOfBoundsException(); } } CrosstabOtherGroup();  CrosstabOtherGroup( final GroupBody body );  CrosstabOtherGroup( final CrosstabCellBody body );  CrosstabOtherGroup( final CrosstabColumnGroupBody body ); GroupHeader getHeader(); void setHeader( final GroupHeader header ); GroupFooter getFooter(); void setFooter( final GroupFooter footer ); CrosstabOtherGroup clone(); CrosstabOtherGroup derive( final boolean preserveElementInstanceIds ); Element getElement( final int index ); int getElementCount(); void setElementAt( final int index, final Element element ); String getField(); void setField( final String field ); void setBody( final GroupBody body ); boolean isGroupChange( final DataRow dataRow ); List<SortConstraint> getSortingConstraint();  }