CloneSet810


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7201.000method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17102
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/junit/PieChart3DTests.java
2796
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/junit/PieChartTests.java
Next
Last
Clone Instance
1
Line Count
7
Source Line
102
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/junit/PieChart3DTests.java

/**
 * 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.
 */
public void testReplaceDatasetOnPieChart() {
  LocalListener l = new LocalListener();
  this.pieChart.addChangeListener(l);
  PiePlot plot = (PiePlot) this.pieChart.getPlot();
  plot.setDataset(null);
  assertEquals(true, l.flag);
  assertNull(plot.getDataset());
}


First
Previous
Clone Instance
2
Line Count
7
Source Line
96
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/junit/PieChartTests.java

/**
 * 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.
 */
public void testReplaceDatasetOnPieChart() {
  LocalListener l = new LocalListener();
  this.pieChart.addChangeListener(l);
  PiePlot plot = (PiePlot) this.pieChart.getPlot();
  plot.setDataset(null);
  assertEquals(true, l.flag);
  assertNull(plot.getDataset());
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
     * 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.
     */
public void testReplaceDatasetOnPieChart() {
  LocalListener l = new LocalListener();
  this.pieChart.addChangeListener(l);
  PiePlot plot = (PiePlot) this.pieChart.getPlot();
  plot.setDataset(null);
  assertEquals(true, l.flag);
  assertNull(plot.getDataset());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None