CloneSet 144

# CloneSet144

Previous CloneSet | Next CloneSet | Back to Main Report

Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length]
--- | --- | --- | --- | ---
22 | 3 | 0 | 1.000 | class_body_declarations[2]

Clone Abstraction | Parameter Bindings

Clone Instance (Click to see clone) | Line Count | Source Line | Source File
--- | --- | --- | ---

1

22

104

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/junit/AreaChartTests.java

2

22

157

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/junit/GanttChartTests.java

3

22

125

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/junit/WaterfallChartTests.java

Next
Last

Clone Instance
1

Line Count
22

Source Line
104

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/junit/AreaChartTests.java

    /**
     * Check that setting a tool tip generator for a series does override the
     * default generator.
     */
    public void testSetSeriesToolTipGenerator() {
      CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
      CategoryItemRenderer renderer = plot.getRenderer();
      StandardCategoryToolTipGenerator tt = new StandardCategoryToolTipGenerator();
      renderer.setSeriesToolTipGenerator(0, tt);
      CategoryToolTipGenerator tt2 = renderer.getToolTipGenerator(0, 0);
      assertTrue(tt2 == tt);
    }

    /**
     * Check that setting a URL generator for a series does override the
     * default generator.
     */
    public void testSetSeriesURLGenerator() {
      CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
      CategoryItemRenderer renderer = plot.getRenderer();
      StandardCategoryURLGenerator url1 = new StandardCategoryURLGenerator();
      renderer.setSeriesItemURLGenerator(0, url1);
      CategoryURLGenerator url2 = renderer.getItemURLGenerator(0, 0);
      assertTrue(url2 == url1);
    }

Next
Previous

Clone Instance
2

Line Count
22

Source Line
157

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/junit/GanttChartTests.java

    /**
     * Check that setting a tool tip generator for a series does override the
     * default generator.
     */
    public void testSetSeriesToolTipGenerator() {
      CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
      CategoryItemRenderer renderer = plot.getRenderer();
      StandardCategoryToolTipGenerator tt = new StandardCategoryToolTipGenerator();
      renderer.setSeriesToolTipGenerator(0, tt);
      CategoryToolTipGenerator tt2 = renderer.getToolTipGenerator(0, 0);
      assertTrue(tt2 == tt);
    }

    /**
     * Check that setting a URL generator for a series does override the
     * default generator.
     */
    public void testSetSeriesURLGenerator() {
      CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
      CategoryItemRenderer renderer = plot.getRenderer();
      StandardCategoryURLGenerator url1 = new StandardCategoryURLGenerator();
      renderer.setSeriesItemURLGenerator(0, url1);
      CategoryURLGenerator url2 = renderer.getItemURLGenerator(0, 0);
      assertTrue(url2 == url1);
    }

First
Previous

Clone Instance
3

Line Count
22

Source Line
125

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/junit/WaterfallChartTests.java

    /**
     * Check that setting a tool tip generator for a series does override the
     * default generator.
     */
    public void testSetSeriesToolTipGenerator() {
      CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
      CategoryItemRenderer renderer = plot.getRenderer();
      StandardCategoryToolTipGenerator tt = new StandardCategoryToolTipGenerator();
      renderer.setSeriesToolTipGenerator(0, tt);
      CategoryToolTipGenerator tt2 = renderer.getToolTipGenerator(0, 0);
      assertTrue(tt2 == tt);
    }

    /**
     * Check that setting a URL generator for a series does override the
     * default generator.
     */
    public void testSetSeriesURLGenerator() {
      CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
      CategoryItemRenderer renderer = plot.getRenderer();
      StandardCategoryURLGenerator url1 = new StandardCategoryURLGenerator();
      renderer.setSeriesItemURLGenerator(0, url1);
      CategoryURLGenerator url2 = renderer.getItemURLGenerator(0, 0);
      assertTrue(url2 == url1);
    }

Clone Abstraction | Parameter Count: 0 | Parameter Bindings

    /**
         * Check that setting a tool tip generator for a series does override the
         * default generator.
         */
    public void testSetSeriesToolTipGenerator() {
      CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
      CategoryItemRenderer renderer = plot.getRenderer();
      StandardCategoryToolTipGenerator tt = new StandardCategoryToolTipGenerator();
      renderer.setSeriesToolTipGenerator(0, tt);
      CategoryToolTipGenerator tt2 = renderer.getToolTipGenerator(0, 0);
      assertTrue(tt2 == tt);
    }

    /**
         * Check that setting a URL generator for a series does override the
         * default generator.
         */
    public void testSetSeriesURLGenerator() {
      CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
      CategoryItemRenderer renderer = plot.getRenderer();
      StandardCategoryURLGenerator url1 = new StandardCategoryURLGenerator();
      renderer.setSeriesItemURLGenerator(0, url1);
      CategoryURLGenerator url2 = renderer.getItemURLGenerator(0, 0);
      assertTrue(url2 == url1);
    }

CloneAbstraction

Parameter Bindings
Parameter Index | Clone Instance | Parameter Name | Value
--- | --- | --- | ---
None