void testNestedFilelistPath() throws Exception { try { executeTarget("nestedFilelistPath"); } catch (BuildException e) { fail("A path can contain nested filelists: " + e); } } // PR 38370 public void testPathelementPath() throws Exception { executeTarget("pathelementPath"); } // PR 38370 public void testPathelementLocationPath() throws Exception { try { executeTarget("pathelementLocationPath"); } catch (BuildException e) { fail("A path can contain pathelements pointing to a file: " + e); }
void testDirsetPathWithoutPackagenames() throws Exception { try { executeTarget("dirsetPathWithoutPackagenames"); } catch (BuildException e) { fail("Contents of path should be picked up without specifying package names: " + e); } } // PR 38370 public void testNestedDirsetPath() throws Exception { executeTarget("nestedDirsetPath"); } // PR 38370 public void testFilesetPath() throws Exception { try { executeTarget("filesetPath"); } catch (BuildException e) { fail("A path can contain filesets: " + e); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/JavadocTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/JavadocTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testNestedFilelistPath() throws Exception {
1
void testDirsetPathWithoutPackagenames() throws Exception {
2
        try {
2
        try {
3
            executeTarget("nestedFilelistPath");
3
            executeTarget("dirsetPathWithoutPackagenames");
4
        } catch (BuildException e) {
4
        } catch (BuildException e) {
5
            fail("A path can contain nested filelists: " + e);
5
            fail("Contents of path should be picked up without specifying package names: " + e);
6
        }
6
        }
7
    }
7
    }
8
    // PR 38370
8
    // PR 38370
9
    public void testPathelementPath() throws Exception {
9
    public void testNestedDirsetPath() throws Exception {
10
        executeTarget("pathelementPath");
10
        executeTarget("nestedDirsetPath");
11
    }
11
    }
12
    // PR 38370
12
    // PR 38370
13
    public void testPathelementLocationPath() throws Exception {
13
    public void testFilesetPath() throws Exception {
14
        try {
14
        try {
15
            executeTarget("pathelementLocationPath");
15
            executeTarget("filesetPath");
16
        } catch (BuildException e) {
16
        } catch (BuildException e) {
17
            fail("A path can contain pathelements pointing to a file: " + e);
17
            fail("A path can contain filesets: " + e);
18
        }
18
        }
19
    
19
    
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