@Test( expected = NullPointerException.class ) public void testRemoveElementException() { CrosstabOtherGroupBody body = new CrosstabOtherGroupBody(); body.removeElement( null ); }
protected void removeElement( final Element element ) { if ( element == null ) { throw new NullPointerException(); } if ( element == group ) { this.group.setParent( null ); this.group = new CrosstabOtherGroup(); this.group.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.group ); } }
CrosstabOtherGroupBody extends GroupBody { protected void removeElement( final Element element ) { if ( element == null ) { throw new NullPointerException(); } if ( element == group ) { this.group.setParent( null ); this.group = new CrosstabOtherGroup(); this.group.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.group ); } } }
CrosstabOtherGroupBody extends GroupBody { protected void removeElement( final Element element ) { if ( element == null ) { throw new NullPointerException(); } if ( element == group ) { this.group.setParent( null ); this.group = new CrosstabOtherGroup(); this.group.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.group ); } } CrosstabOtherGroupBody();  CrosstabOtherGroupBody( final CrosstabOtherGroup group ); }
CrosstabOtherGroupBody extends GroupBody { protected void removeElement( final Element element ) { if ( element == null ) { throw new NullPointerException(); } if ( element == group ) { this.group.setParent( null ); this.group = new CrosstabOtherGroup(); this.group.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.group ); } } 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 { protected void removeElement( final Element element ) { if ( element == null ) { throw new NullPointerException(); } if ( element == group ) { this.group.setParent( null ); this.group = new CrosstabOtherGroup(); this.group.setParent( this ); notifyNodeChildRemoved( element ); notifyNodeChildAdded( this.group ); } } 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 );  }