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"); }
void testAddCondition() { executeTarget("addcondition"); } public void testAddFilter() { executeTarget("addfilter"); } public void testAddSelector() { executeTarget("addselector"); } public void testNestedA() { expectLogContaining("nested.a", "add A called"); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ZipTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/AddTypeTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testEmptySkip() {
1
void testAddCondition() {
2
        executeTarget("testEmptySkip");
2
        executeTarget("
3
    }
4
    // Bugzilla Report 30365
3
addcondition");
4
    }
5
    public void testZipEmptyDir() {
5
    public void testAddFilter() {
6
        executeTarget("zipEmptyDir");
6
        executeTarget("addfilter");
7
    }
7
    }
8
    // Bugzilla Report 40258
9
    public void testZipEmptyDirFilesOnly() {
8
    public void testAddSelector() {
10
        executeTarget("zipEmptyDirFilesOnly");
9
        executeTarget("addselector");
11
    }
10
    }
12
    public void testZipEmptyCreate() {
11
    public void testNestedA() {
13
        expectLogContaining("zipEmptyCreate", "Note: creating empty");
12
        expectLogContaining("nested.a", "add A called");
14
    }
13
    }
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