243-2-3

public class DataGanttPackageTests extends TestCase { /** * Returns a test suite to the JUnit test runner. * * @return The test suite. */ public static Test suite() { TestSuite suite = new TestSuite("org.jfree.data.gantt"); suite.addTestSuite(SlidingGanttCategoryDatasetTests.class); suite.addTestSuite(TaskTests.class); suite.addTestSuite(TaskSeriesTests.class); suite.addTestSuite(TaskSeriesCollectionTests.class); return suite; } /** * Constructs the test suite. * * @param name the test suite name. */ public DataGanttPackageTests(String name) { super(name); } /** * Runs the test suite using JUnit's text-based runner. * * @param args ignored. */ public static void main(String[] args) { junit.textui.TestRunner.run(suite());
public class OHLCPackageTests extends TestCase { /** * Returns a test suite to the JUnit test runner. * * @return The test suite. */ public static Test suite() { TestSuite suite = new TestSuite("org.jfree.data.time.ohlc"); suite.addTestSuite(OHLCItemTests.class); suite.addTestSuite(OHLCSeriesCollectionTests.class); suite.addTestSuite(OHLCSeriesTests.class); suite.addTestSuite(OHLCTests.class); return suite; } /** * Constructs the test suite. * * @param name the test suite name. */ public OHLCPackageTests(String name) { super(name); } /** * Runs the test suite using JUnit's text-based runner. * * @param args ignored. */ public static void main(String[] args) { junit.textui.TestRunner.run(suite());

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/tests/org/jfree/data/gantt/junit/DataGanttPackageTests.java |  | File path: /jfreechart-1.0.10/tests/org/jfree/data/time/ohlc/junit/OHLCPackageTests.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    public class DataGanttPackageTests extends TestCase {↵

1

    public class OHLCPackageTests extends TestCase {↵

2

        /**↵

2

        /**↵

3

         * Returns a test suite to the JUnit test runner.↵

3

         * Returns a test suite to the JUnit test runner.↵

4

         *↵

4

         *↵

5

         * @return The test suite.↵

5

         * @return The test suite.↵

6

         */↵

6

         */↵

7

        public static Test suite() {↵

7

        public static Test suite() {↵

8

            TestSuite suite = new TestSuite("org.jfree.data.gantt");↵

8

            TestSuite suite = new TestSuite("org.jfree.data.time.ohlc");↵

9

            suite.addTestSuite(SlidingGanttCategoryDatasetTests.class);↵

9

            suite.addTestSuite(OHLCItemTests.class);↵

10

            suite.addTestSuite(TaskTests.class);↵

10

            suite.addTestSuite(OHLCSeriesCollectionTests.class);↵

11

            suite.addTestSuite(TaskSeriesTests.class);↵

11

            suite.addTestSuite(OHLCSeriesTests.class);↵

12

            suite.addTestSuite(TaskSeriesCollectionTests.class);↵

12

            suite.addTestSuite(OHLCTests.class);↵

13

            return suite;↵

13

            return suite;↵

14

        }↵

14

        }↵

15

        /**↵

15

        /**↵

16

         * Constructs the test suite.↵

16

         * Constructs the test suite.↵

17

         *↵

17

         *↵

18

         * @param name  the test suite name.↵

18

         * @param name  the test suite name.↵

19

         */↵

19

         */↵

20

        public DataGanttPackageTests(String name) {↵

20

        public OHLCPackageTests(String name) {↵

21

            super(name);↵

21

            super(name);↵

22

        }↵

22

        }↵

23

        ↵

23

        /**↵

24

        /**↵

24

         * Runs the test suite using JUnit's text-based runner.↵

25

         * Runs the test suite using JUnit's text-based runner.↵

25

         *↵

26

         * ↵

26

         * @param args  ignored.↵

27

         * @param args  ignored.↵

27

         */↵

28

         */↵

28

        public static void main(String[] args) {↵

29

        public static void main(String[] args) {↵

29

            junit.textui.TestRunner.run(suite());↵

30

            junit.textui.TestRunner.run(suite());↵

30

31

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 0
Number of refactorable cases | 0
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location |
Number of node comparisons | 0