159-2-3

public class BlockPackageTests 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.chart.block"); suite.addTestSuite(AbstractBlockTests.class); suite.addTestSuite(BlockBorderTests.class); suite.addTestSuite(BlockContainerTests.class); suite.addTestSuite(BorderArrangementTests.class); suite.addTestSuite(ColorBlockTests.class); suite.addTestSuite(ColumnArrangementTests.class); suite.addTestSuite(EmptyBlockTests.class); suite.addTestSuite(FlowArrangementTests.class); suite.addTestSuite(GridArrangementTests.class); suite.addTestSuite(LabelBlockTests.class); suite.addTestSuite(LineBorderTests.class); suite.addTestSuite(RectangleConstraintTests.class); return suite; } /** * Constructs the test suite. * * @param name the suite name. */ public BlockPackageTests(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 DataStatisticsPackageTests 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.statistics"); suite.addTestSuite(BoxAndWhiskerCalculatorTests.class); suite.addTestSuite(BoxAndWhiskerItemTests.class); suite.addTestSuite(DefaultBoxAndWhiskerCategoryDatasetTests.class); suite.addTestSuite(DefaultBoxAndWhiskerXYDatasetTests.class); suite.addTestSuite(DefaultStatisticalCategoryDatasetTests.class); suite.addTestSuite(HistogramBinTests.class); suite.addTestSuite(HistogramDatasetTests.class); suite.addTestSuite(MeanAndStandardDeviationTests.class); suite.addTestSuite(RegressionTests.class); suite.addTestSuite(SimpleHistogramBinTests.class); suite.addTestSuite(SimpleHistogramDatasetTests.class); suite.addTestSuite(StatisticsTests.class); return suite; } /** * Constructs the test suite. * * @param name the test suite name. */ public DataStatisticsPackageTests(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/chart/block/junit/BlockPackageTests.java |  | File path: /jfreechart-1.0.10/tests/org/jfree/data/statistics/junit/DataStatisticsPackageTests.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    public class BlockPackageTests extends TestCase {↵

1

    public class DataStatisticsPackageTests 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.chart.block");↵

8

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

9

            suite.addTestSuite(AbstractBlockTests.class);↵

9

            suite.addTestSuite(BoxAndWhiskerCalculatorTests.class);↵

10

            suite.addTestSuite(BlockBorderTests.class);↵

10

            suite.addTestSuite(BoxAndWhiskerItemTests.class);↵

11

            suite.addTestSuite(BlockContainerTests.class);↵

11

            suite.addTestSuite(DefaultBoxAndWhiskerCategoryDatasetTests.class);↵

12

            suite.addTestSuite(BorderArrangementTests.class);↵

12

            suite.addTestSuite(DefaultBoxAndWhiskerXYDatasetTests.class);↵

13

            suite.addTestSuite(ColorBlockTests.class);↵

13

            suite.addTestSuite(DefaultStatisticalCategoryDatasetTests.class);↵

14

            suite.addTestSuite(ColumnArrangementTests.class);↵

14

            suite.addTestSuite(HistogramBinTests.class);↵

15

            suite.addTestSuite(EmptyBlockTests.class);↵

15

            suite.addTestSuite(HistogramDatasetTests.class);↵

16

            suite.addTestSuite(FlowArrangementTests.class);↵

16

            suite.addTestSuite(MeanAndStandardDeviationTests.class);↵

17

            suite.addTestSuite(GridArrangementTests.class);↵

17

            suite.addTestSuite(RegressionTests.class);↵

18

            suite.addTestSuite(LabelBlockTests.class);↵

18

            suite.addTestSuite(SimpleHistogramBinTests.class);↵

19

            suite.addTestSuite(LineBorderTests.class);↵

19

            suite.addTestSuite(SimpleHistogramDatasetTests.class);↵

20

            suite.addTestSuite(RectangleConstraintTests.class);↵

20

            suite.addTestSuite(StatisticsTests.class);↵

21

            return suite;↵

21

            return suite;↵

22

        }↵

22

        }↵

23

        /**↵

23

        /**↵

24

         * Constructs the test suite.↵

24

         * Constructs the test suite.↵

25

         *↵

25

         *↵

26

         * @param name  the suite name.↵

26

         * @param name  the test suite name.↵

27

         */↵

27

         */↵

28

        public BlockPackageTests(String name) {↵

28

        public DataStatisticsPackageTests(String name) {↵

29

            super(name);↵

29

            super(name);↵

30

        }↵

30

        }↵

31

        ↵

31

        ↵

32

        /**↵

32

        /**↵

33

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

33

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

34

         * ↵

34

         * ↵

35

         * @param args  ignored.↵

35

         * @param args  ignored.↵

36

         */↵

36

         */↵

37

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

37

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

38

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

38

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

39

39

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