1125-1-2

TestSuite suite = new TestSuite("org.jfree.chart.renderer"); suite.addTestSuite(AbstractRendererTests.class); suite.addTestSuite(AreaRendererEndTypeTests.class); suite.addTestSuite(DefaultPolarItemRendererTests.class); suite.addTestSuite(GrayPaintScaleTests.class); suite.addTestSuite(LookupPaintScaleTests.class); suite.addTestSuite(OutlierTests.class); suite.addTestSuite(RendererUtilitiesTests.class); return suite;
TestSuite suite = new TestSuite("org.jfree.chart.urls"); suite.addTestSuite(CustomCategoryURLGeneratorTests.class); suite.addTestSuite(CustomPieURLGeneratorTests.class); suite.addTestSuite(CustomXYURLGeneratorTests.class); suite.addTestSuite(StandardCategoryURLGeneratorTests.class); suite.addTestSuite(StandardPieURLGeneratorTests.class); suite.addTestSuite(StandardXYURLGeneratorTests.class); suite.addTestSuite(TimeSeriesURLGeneratorTests.class); return suite;

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/tests/org/jfree/chart/renderer/junit/RendererPackageTests.java |  | File path: /jfreechart-1.0.10/tests/org/jfree/chart/urls/junit/UrlsPackageTests.java
Method name: `Test suite()` |  | Method name: `Test suite()`
Number of AST nodes: 9 |  | Number of AST nodes: 9

1

    TestSuite suite = new TestSuite("org.jfree.chart.renderer");↵

1

    TestSuite suite = new TestSuite("org.jfree.chart.urls");↵

2

            suite.addTestSuite(AbstractRendererTests.class);↵

2

            suite.addTestSuite(CustomCategoryURLGeneratorTests.class);↵

3

            suite.addTestSuite(AreaRendererEndTypeTests.class);↵

3

            suite.addTestSuite(CustomPieURLGeneratorTests.class);↵

4

            suite.addTestSuite(DefaultPolarItemRendererTests.class);↵

4

            suite.addTestSuite(CustomXYURLGeneratorTests.class);↵

5

            suite.addTestSuite(GrayPaintScaleTests.class);↵

5

            suite.addTestSuite(StandardCategoryURLGeneratorTests.class);↵

6

            suite.addTestSuite(LookupPaintScaleTests.class);↵

6

            suite.addTestSuite(StandardPieURLGeneratorTests.class);↵

7

            suite.addTestSuite(OutlierTests.class);↵

7

            suite.addTestSuite(StandardXYURLGeneratorTests.class);↵

8

            suite.addTestSuite(RendererUtilitiesTests.class);↵

8

            suite.addTestSuite(TimeSeriesURLGeneratorTests.class);↵

9

            return suite;

9

            return suite;

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 1
Number of refactorable cases | 1
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location | Clones are in different classes having the same super class
Number of node comparisons | 65

1. {Refactorable}

   Mapping Summary
   Number of mapped statements | 9
   Number of unmapped statements in the first code fragment | 0
   Number of unmapped statements in the second code fragment | 0
   Time elapsed for statement mapping (ms) | 0.0
   Clone type | Type 2

   Mapped Statements
   ID | Statement |  | ID | Statement
   --- | --- | --- | --- | ---

   1

       TestSuite suite = new TestSuite("org.jfree.chart.renderer");

   1 | TestSuite suite = new TestSuite("org.jfree.chart.renderer");
   1 | TestSuite suite = new TestSuite("org.jfree.chart.urls");

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   "org.jfree.chart.renderer" | "org.jfree.chart.urls" | LITERAL_VALUE_MISMATCH

   1

       TestSuite suite = new TestSuite("org.jfree.chart.urls");

   2

       suite.addTestSuite(AbstractRendererTests.class);

   2

       suite.addTestSuite(CustomCategoryURLGeneratorTests.class);

   3

       suite.addTestSuite(AreaRendererEndTypeTests.class);

   3

       suite.addTestSuite(CustomPieURLGeneratorTests.class);

   4

       suite.addTestSuite(DefaultPolarItemRendererTests.class);

   4

       suite.addTestSuite(CustomXYURLGeneratorTests.class);

   5

       suite.addTestSuite(GrayPaintScaleTests.class);

   5

       suite.addTestSuite(StandardCategoryURLGeneratorTests.class);

   6

       suite.addTestSuite(LookupPaintScaleTests.class);

   6

       suite.addTestSuite(StandardPieURLGeneratorTests.class);

   7

       suite.addTestSuite(OutlierTests.class);

   7

       suite.addTestSuite(StandardXYURLGeneratorTests.class);

   8

       suite.addTestSuite(RendererUtilitiesTests.class);

   8

       suite.addTestSuite(TimeSeriesURLGeneratorTests.class);

   9

       return suite;

   9

       return suite;

   Precondition Violations (0)
   Row | Violation
   --- | ---