void test3() { executeTarget("test3"); } public void test4() { executeTarget("test4"); } public void test5() { executeTarget("test5"); } public void test6() { expectBuildException("test6", "Failed executing: /never/heard/of/a/directory/structure/like/this/pcli lvf -z -aw -pr//ct4serv2/pvcs/monitor /. Exception: /never/heard/of/a/directory/structure/like/this/pcli: not found");
void testEmptySkip() { executeTarget("testEmptySkip"); } // Bugzilla Report 30365 public void testZipEmptyDir() { executeTarget("zipEmptyDir"); } // Bugzilla Report 40258 public void testZipEmptyDirFilesOnly() { executeTarget("zipEmptyDirFilesOnly"); } public void testZipEmptyCreate() { expectLogContaining("zipEmptyCreate", "Note: creating empty");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/PvcsTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ZipTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void test3() {
1
void testEmptySkip() {
2
        executeTarget("test3");
2
        executeTarget("testEmptySkip");
3
    }
3
    }
4
    // Bugzilla Report 30365
4
    public void test4() {
5
    public void testZipEmptyDir() {
5
        executeTarget("test4");
6
        executeTarget("
6
    }
7
zipEmptyDir");
8
    }
9
    // Bugzilla Report 40258
7
    public void test5() {
10
    public void testZipEmptyDirFilesOnly() {
8
        executeTarget("test5");
11
        executeTarget("zipEmptyDirFilesOnly");
9
    }
12
    }
10
    public void test6() {
13
    public void testZipEmptyCreate() {
11
        expectBuildException("test6", "Failed executing: /never/heard/of/a/directory/structure/like/this/pcli lvf -z -aw -pr//ct4serv2/pvcs/monitor /. Exception: /never/heard/of/a/directory/structure/like/this/pcli: not found");
14
        expectLogContaining("zipEmptyCreate", "Note: creating empty");
12
    
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