void testAddCondition() { executeTarget("addcondition"); } public void testAddFilter() { executeTarget("addfilter"); } public void testAddSelector() { executeTarget("addselector"); } public void testNestedA() { expectLogContaining("nested.a", "add A called");
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/types/AddTypeTest.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 testAddCondition() {
1
void testEmptySkip() {
2
        executeTarget("addcondition");
2
        executeTarget("
3
    }
3
testEmptySkip");
4
    }
5
    // Bugzilla Report 30365
4
    public void testAddFilter() {
6
    public void testZipEmptyDir() {
5
        executeTarget("addfilter");
7
        executeTarget("zipEmptyDir");
6
    }
8
    }
9
    // Bugzilla Report 40258
7
    public void testAddSelector() {
10
    public void testZipEmptyDirFilesOnly() {
8
        executeTarget("addselector");
11
        executeTarget("zipEmptyDirFilesOnly");
9
    }
12
    }
10
    public void testNestedA() {
13
    public void testZipEmptyCreate() {
11
        expectLogContaining("nested.a", "add A called");
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