@Test public void testSetElementAt() { CrosstabOtherGroup group = mock( CrosstabOtherGroup.class ); CrosstabOtherGroupBody body = new CrosstabOtherGroupBody(); body.setElementAt( 0, group ); assertThat( body.getGroup(), is( equalTo( group ) ) ); }
public void setElementAt( final int position, final Element element ) { if ( position != 0 ) { throw new IndexOutOfBoundsException(); } setGroup( (CrosstabOtherGroup) element ); }
CrosstabOtherGroupBody extends GroupBody { public void setElementAt( final int position, final Element element ) { if ( position != 0 ) { throw new IndexOutOfBoundsException(); } setGroup( (CrosstabOtherGroup) element ); } }
CrosstabOtherGroupBody extends GroupBody { public void setElementAt( final int position, final Element element ) { if ( position != 0 ) { throw new IndexOutOfBoundsException(); } setGroup( (CrosstabOtherGroup) element ); } CrosstabOtherGroupBody();  CrosstabOtherGroupBody( final CrosstabOtherGroup group ); }
CrosstabOtherGroupBody extends GroupBody { public void setElementAt( final int position, final Element element ) { if ( position != 0 ) { throw new IndexOutOfBoundsException(); } setGroup( (CrosstabOtherGroup) element ); } 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 void setElementAt( final int position, final Element element ) { if ( position != 0 ) { throw new IndexOutOfBoundsException(); } setGroup( (CrosstabOtherGroup) element ); } 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 );  }