void function ( ) { LocalListener loc0 = new LocalListener ( ) ; this . pieChart . addChangeListener ( loc0 ) ; PiePlot loc1 = ( PiePlot ) this . pieChart . getPlot ( ) ; loc1 . setDataset ( null ) ; assertEquals ( true , loc0 . flag ) ; assertNull ( loc1 . getDataset ( ) ) ; }
using a regular pie chart , we replace the dataset with null . expect to receive notification of a chart change event , and of course the dataset should be null . concode_field_sep boolean flag concode_elem_sep JFreeChart pieChart concode_field_sep void chartChanged concode_elem_sep JFreeChart createPieChart concode_elem_sep void setUp