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); } } // PR 38370 public void testNestedSource() throws Exception { executeTarget("nestedSource");
void testDirsetPath() throws Exception { executeTarget("dirsetPath"); } // PR 38370 public 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");
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 testPathelementPath() throws Exception {
1
void testDirsetPath() throws Exception {
2
        executeTarget("pathelementPath");
2
        executeTarget("dirsetPath");
3
    }
3
    }
4
    // PR 38370
4
    // PR 38370
5
    public void testPathelementLocationPath() throws Exception {
5
    public void testDirsetPathWithoutPackagenames() throws Exception {
6
        try {
6
        try {
7
            executeTarget("pathelementLocationPath");
7
            executeTarget("dirsetPathWithoutPackagenames");
8
        } catch (BuildException e) {
8
        } catch (BuildException e) {
9
            fail("A path can contain pathelements pointing to a file: " + e);
9
            fail("Contents of path should be picked up without specifying package names: " + e);
10
        }
10
        }
11
    }
11
    }
12
    // PR 38370
12
    // PR 38370
13
    public void testNestedSource() throws Exception {
13
    public void testNestedDirsetPath() throws Exception {
14
        executeTarget("nestedSource");
14
        executeTarget("nestedDirsetPath");
15
    
15
    
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