public class ImageMapPackageTests 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.imagemap"); suite.addTestSuite(StandardToolTipTagFragmentGeneratorTests.class); suite.addTestSuite(StandardURLTagFragmentGeneratorTests.class); return suite; } /** * Constructs the test suite. * * @param name the suite name. */ public ImageMapPackageTests(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 UtilPackageTests 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.util"); suite.addTestSuite(LogFormatTests.class); suite.addTestSuite(RelativeDateFormatTests.class); return suite; } /** * Constructs the test suite. * * @param name the suite name. */ public UtilPackageTests(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/imagemap/junit/ImageMapPackageTests.java File path: /jfreechart-1.0.10/tests/org/jfree/chart/util/junit/UtilPackageTests.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ImageMapPackageTests extends TestCase {
1
public class UtilPackageTests 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.imagemap");
8
        TestSuite suite = new TestSuite("org.jfree.chart.util");
9
        suite.addTestSuite(StandardToolTipTagFragmentGeneratorTests.class);
9
        suite.addTestSuite(LogFormatTests.class);
10
        suite.addTestSuite(StandardURLTagFragmentGeneratorTests.class);
10
        suite.addTestSuite(RelativeDateFormatTests.class);
11
        return suite;
11
        return suite;
12
    }
12
    }
13
    /**
13
    /**
14
     * Constructs the test suite.
14
     * Constructs the test suite.
15
     *
15
     *
16
     * @param name  the suite name.
16
     * @param name  the suite name.
17
     */
17
     */
18
    public ImageMapPackageTests(String name) {
18
    public UtilPackageTests(String name) {
19
        super(name);
19
        super(name);
20
    }
20
    }
21
    
21
    
22
    /**
22
    /**
23
     * Runs the test suite using JUnit's text-based runner.
23
     * Runs the test suite using JUnit's text-based runner.
24
     * 
24
     * 
25
     * @param args  ignored.
25
     * @param args  ignored.
26
     */
26
     */
27
    public static void main(String[] args) {
27
    public static void main(String[] args) {
28
        junit.textui.TestRunner.run(suite())
28
        junit.textui.TestRunner.run(suite())
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0