@Test public void testIsGroupChange() { DataRow dataRow = mock( DataRow.class ); CrosstabOtherGroup crosstab = new CrosstabOtherGroup(); boolean result = crosstab.isGroupChange( dataRow ); assertThat( result, is( equalTo( false ) ) ); crosstab.setField( "field_value" ); doReturn( false ).when( dataRow ).isChanged( "field_value" ); result = crosstab.isGroupChange( dataRow ); assertThat( result, is( equalTo( false ) ) ); doReturn( true ).when( dataRow ).isChanged( "field_value" ); result = crosstab.isGroupChange( dataRow ); assertThat( result, is( equalTo( true ) ) ); }
public boolean isGroupChange( final DataRow dataRow ) { final String fieldName = getField(); if ( fieldName == null ) { return false; } if ( dataRow.isChanged( fieldName ) ) { return true; } return false; }
CrosstabOtherGroup extends Group { public boolean isGroupChange( final DataRow dataRow ) { final String fieldName = getField(); if ( fieldName == null ) { return false; } if ( dataRow.isChanged( fieldName ) ) { return true; } return false; } }
CrosstabOtherGroup extends Group { public boolean isGroupChange( final DataRow dataRow ) { final String fieldName = getField(); if ( fieldName == null ) { return false; } if ( dataRow.isChanged( fieldName ) ) { return true; } return false; } CrosstabOtherGroup();  CrosstabOtherGroup( final GroupBody body );  CrosstabOtherGroup( final CrosstabCellBody body );  CrosstabOtherGroup( final CrosstabColumnGroupBody body ); }
CrosstabOtherGroup extends Group { public boolean isGroupChange( final DataRow dataRow ) { final String fieldName = getField(); if ( fieldName == null ) { return false; } if ( dataRow.isChanged( fieldName ) ) { return true; } return false; } 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 boolean isGroupChange( final DataRow dataRow ) { final String fieldName = getField(); if ( fieldName == null ) { return false; } if ( dataRow.isChanged( fieldName ) ) { return true; } return false; } 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();  }