void testParentLevel2TooDeep() { expectBuildExceptionContaining("test-parent-level2-too-deep", "nopath", "No suitable relative path from "); assertPropertyUnset("jar.classpath"); } public 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/");
void testBadNoClassPath() { expectBuildExceptionContaining("test-bad-no-classpath", "no-classpath", "Missing nested <classpath>!"); assertPropertyUnset("jar.classpath"); } public void testParentLevel1() { executeTarget("test-parent-level1"); assertPropertyEquals("jar.classpath", "dsp-core/ " + "dsp-pres/ " + "dsp-void/ " + "../generated/dsp-core/ " + "../generated/dsp-pres/ " + "../generated/dsp-void/ " + "../resources/dsp-core/ " + "../resources/dsp-pres/ " + "../resources/dsp-void/"); } public void testParentLevel2() { executeTarget("test-parent-level2"); assertPropertyEquals("jar.classpath", "../dsp-core/ " + "../dsp-pres/ " + "../dsp-void/ " + "../../generated/dsp-core/ " + "../../generated/dsp-pres/ " + "../../generated/dsp-void/ " + "../../resources/dsp-core/ " + "../../resources/dsp-pres/ " + "../../resources/dsp-void/");
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/taskdefs/ManifestClassPathTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testParentLevel2TooDeep() {
1
void testBadNoClassPath() {
2
        expectBuildExceptionContaining("test-parent-level2-too-deep", "nopath",
2
        expectBuildExceptionContaining("test-bad-no-classpath", "no-classpath",
3
                                       "No suitable relative path from ");
3
                                       "Missing nested <classpath>!");
4
        assertPropertyUnset("jar.classpath");
4
        assertPropertyUnset("jar.classpath");
5
    }
5
    }
6
    public void testPseudoTahoeRefid() {
6
    public void testParentLevel1() {
7
        executeTarget("test-pseudo-tahoe-refid");
7
        executeTarget("test-parent-level1");
8
        assertPropertyEquals("jar.classpath", "classes/dsp-core/ " +
8
        assertPropertyEquals("jar.classpath", "dsp-core/ " +
9
                                              "classes/dsp-pres/ " +
9
                                              "dsp-pres/ " +
10
                                              "classes/dsp-void/ " +
10
                                              "dsp-void/ " +
11
                                              "generated/dsp-core/ " +
11
                                              "../generated/dsp-core/ " +
12
                                              "
12
                                              "../generated/dsp-pres/ " +
13
                                              "../generated/dsp-void/ " +
13
resources/dsp-core/ " +
14
                                              "../resources/dsp-core/ " +
14
                                              "resources/dsp-pres/
15
                                              "../resources/dsp-pres/ " +
15
");
16
                                              "../resources/dsp-void/");
16
    }
17
    }
17
    public void testPseudoTahoeNested() {
18
    public void testParentLevel2() {
18
        executeTarget("test-pseudo-tahoe-nested");
19
        executeTarget("test-parent-level2");
19
        assertPropertyEquals("jar.classpath", "classes/dsp-core/ " +
20
        assertPropertyEquals("jar.classpath", "../dsp-core/ " +
20
                                              "classes/dsp-pres/ " +
21
                                              "../dsp-pres/ " +
21
                                              "classes/dsp-void/ " +
22
                                              "../dsp-void/ " +
22
                                              "generated/dsp-core/ " +
23
                                              "../../generated/dsp-core/ " +
23
                                              "
24
                                              "../../generated/dsp-pres/ " +
25
                                              "../../generated/dsp-void/ " +
24
resources/dsp-core/ " +
26
                                              "../../resources/dsp-core/ " +
25
                                              "resources/dsp-pres/
27
                                              "../../resources/dsp-pres/ " +
26
");
28
                                              "../../resources/dsp-void/");
27
    
29
    
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