void testPseudoTahoeRefid() { executeTarget("test-pseudo-tahoe-refid"); assertPropertyEquals("jar.classpath", "classes/dsp-core/ " + "classes/dsp-pres/ " + "classes/dsp-void/ " + "generated/dsp-core/ " + "resources/dsp-core/ " + "resources/dsp-pres/"); } public void testPseudoTahoeNested() { executeTarget("test-pseudo-tahoe-nested"); assertPropertyEquals("jar.classpath", "classes/dsp-core/ " + "classes/dsp-pres/ " + "classes/dsp-void/ " + "generated/dsp-core/ " + "resources/dsp-core/ " + "resources/dsp-pres/"); } public void testParentLevel2WithJars() { executeTarget("test-parent-level2-with-jars"); assertPropertyEquals("jar.classpath", "../../lib/acme-core.jar " + "../../lib/acme-pres.jar " + "../dsp-core/ " + "../dsp-pres/ " + "../dsp-void/ " + "../../generated/dsp-core/ " + "../../generated/dsp-pres/ " + "../../generated/dsp-void/ " + "../../resources/dsp-core/ " + "../../resources/dsp-pres/ " + "../../resources/dsp-void/"); }
void test2() { configureProject("src/etc/testcases/core/include/frag#ment/include.xml"); expectLog("test1", "from included entity"); } public void test3() { configureProject("src/etc/testcases/core/include/frag#ment/simple.xml"); expectLog("test1", "from simple buildfile"); } public void test4() { configureProject("src/etc/testcases/core/include/basic/relative.xml"); expectLog("test1", "from included entity"); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestClassPathTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/IncludeTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testPseudoTahoeRefid() {
1
void test
2
        executeTarget("test-pseudo-tahoe-refid");
3
        assertPropertyEquals("jar.classpath", "cl
2
2() {
4
asses/dsp-core/ " +
3
        configureProject("src/etc/testcases/core/
5
                                              "classes/dsp-pres/ " +
6
                                              "classes/dsp-void/ " +
7
                                              "generated/dsp-core/ " +
8
                                              "resources/dsp-core/ " +
9
                                              "resources/dsp-pres/
4
include/frag#ment/include.xml");
10
");
5
        expectLog("test1", "from included entity");
11
    }
6
    }
12
    public void testPseudoTahoeNested() {
7
    public void test
13
        executeTarget("test-pseudo-tahoe-nested");
14
        assertPropertyEquals("jar.classpath", "classes/dsp-core/ " +
15
                                              "classes/dsp-pres/ " +
16
                                              "classes/dsp-void/ " +
17
                                              "generated/dsp-core/ " +
18
                                              "resources/dsp-core/ " +
19
                                              "resources/dsp-pres/
8
3() {
9
        configureProject("src/etc/testcases/core/include/frag#ment/simple.xml");
20
");
10
        expectLog("test1", "from simple buildfile");
21
    }
11
    }
22
    public void testParentLevel2WithJars() {
12
    public void test
23
        executeTarget("test-parent-level2-with-jars");
24
        assertPropertyEquals("jar.classpath", "../../lib/acme-core.jar " +
25
                                              "../../lib/acme-pres.jar " +
26
                                              "../dsp-core/ " +
27
                                              "../dsp-pres/ " +
28
                                              "../dsp-void/ " +
29
                                              "../../generated/dsp-core/ " +
30
                                              "../../generated/dsp-pres/ " +
31
                                              "../../generated/dsp-void/ " +
32
                                              "../../resources/dsp-core/ " +
33
                                              "../../resources/dsp-pres/ " +
34
                                              "../../resources/dsp-void/
13
4() {
14
        configureProject("src/etc/testcases/core/include/basic/relative.xml");
35
");
15
        expectLog("test1", "from included entity");
36
    }
16
    }
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