@Test public void testGetElement() { CrosstabOtherGroup group = mock( CrosstabOtherGroup.class ); CrosstabOtherGroupBody body = new CrosstabOtherGroupBody( group ); assertThat( (CrosstabOtherGroup) body.getElement( 0 ), is( equalTo( group ) ) ); }
public Element getElement( final int index ) { if ( index == 0 ) { return group; } throw new IndexOutOfBoundsException(); }
CrosstabOtherGroupBody extends GroupBody { public Element getElement( final int index ) { if ( index == 0 ) { return group; } throw new IndexOutOfBoundsException(); } }
CrosstabOtherGroupBody extends GroupBody { public Element getElement( final int index ) { if ( index == 0 ) { return group; } throw new IndexOutOfBoundsException(); } CrosstabOtherGroupBody();  CrosstabOtherGroupBody( final CrosstabOtherGroup group ); }
CrosstabOtherGroupBody extends GroupBody { public Element getElement( final int index ) { if ( index == 0 ) { return group; } throw new IndexOutOfBoundsException(); } CrosstabOtherGroupBody();  CrosstabOtherGroupBody( final CrosstabOtherGroup group ); CrosstabOtherGroup getGroup(); void setGroup( final CrosstabOtherGroup group ); void setElementAt( final int position, final Element element ); int getElementCount(); Element getElement( final int index ); CrosstabOtherGroupBody clone(); CrosstabOtherGroupBody derive( final boolean preserveElementInstanceIds ); }
CrosstabOtherGroupBody extends GroupBody { public Element getElement( final int index ) { if ( index == 0 ) { return group; } throw new IndexOutOfBoundsException(); } CrosstabOtherGroupBody();  CrosstabOtherGroupBody( final CrosstabOtherGroup group ); CrosstabOtherGroup getGroup(); void setGroup( final CrosstabOtherGroup group ); void setElementAt( final int position, final Element element ); int getElementCount(); Element getElement( final int index ); CrosstabOtherGroupBody clone(); CrosstabOtherGroupBody derive( final boolean preserveElementInstanceIds );  }