void testNoRecreateBasedirExcludesWithoutUpdate() { testNoRecreate("testNoRecreateBasedirExcludesWithoutUpdate"); } public void testNoRecreateZipfilesetExcludesWithUpdate() { testNoRecreate("testNoRecreateZipfilesetExcludesWithUpdate"); } public void testNoRecreateZipfilesetExcludesWithoutUpdate() { testNoRecreate("testNoRecreateZipfilesetExcludesWithoutUpdate"); } public void testRecreateZipfilesetWithoutUpdateAdditionalFiles() { testRecreate("test4", "testRecreateZipfilesetWithoutUpdateAdditionalFiles");
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/JarTest.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 testNoRecreateBasedirExcludesWithoutUpdate() {
1
void test
2
        testNoRecreate("testNoRecreateBasedirExcludesWithoutUpdate");
3
    }
4
    public void testNoRecreateZipfilesetExcludesWithUpdate() {
5
        testNoRecreate("testNoRecreateZipfilesetExcludesWithUpdate");
6
    }
7
    public void testNoRecreateZipfilesetExcludesWithoutUpdate() {
8
        testNoRecreate("testNoRecreateZipfilesetExcludesWithoutUpdate
2
EmptySkip() {
3
        executeTarget("testEmptySkip");
4
    }
5
    // Bugzilla Report 30365
6
    public void testZipEmptyDir() {
7
        executeTarget("zipEmptyDir");
8
    }
9
    // Bugzilla Report 40258
10
    public void testZipEmptyDirFilesOnly() {
9
");
11
        executeTarget("zipEmptyDirFilesOnly");
10
    }
12
    }
11
    public void testRecreateZipfilesetWithoutUpdateAdditionalFiles() {
13
    public void test
12
        testRecreate("test4",
13
                     "testRecreateZipfilesetWithoutUpdateAdditionalFiles
14
ZipEmptyCreate() {
14
");
15
        expectLogContaining("zipEmptyCreate", "Note: creating empty");
15
    
16
    
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