void testZipEmptyDir() { executeTarget("zipEmptyDir"); } // Bugzilla Report 40258 public void testZipEmptyDirFilesOnly() { executeTarget("zipEmptyDirFilesOnly"); } public void testZipEmptyCreate() { expectLogContaining("zipEmptyCreate", "Note: creating empty"); } // Bugzilla Report 25513 public void testCompressionLevel() { executeTarget("testCompressionLevel");
void test3() { executeTarget("test3"); } public void test4() { executeTarget("test4"); } public void test5() { // should print "panic: Cannot find importVocab file 'JavaTokenTypes.txt'" // since it needs to run java.g first before java.tree.g expectBuildException("test5", "ANTLR returned: 1"); } public void test6() { executeTarget("test6");
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/taskdefs/optional/ANTLRTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testZipEmptyDir() {
1
void test3() {
2
        executeTarget("zipEmptyDir");
2
        executeTarget("
3
    }
4
    // Bugzilla Report 40258
3
test3");
4
    }
5
    public void testZipEmptyDirFilesOnly() {
5
    public void test4() {
6
        executeTarget("zipEmptyDirFilesOnly");
6
        executeTarget("test4");
7
    }
7
    }
8
    public void testZipEmptyCreate() {
8
    public void test
9
        expectLogContaining("zipEmptyCreate", "Note: creating empty");
9
5() {
10
        // should print "panic: Cannot find importVocab file 'JavaTokenTypes.txt'"
11
        // since it needs to run java.g first before java.tree.g
10
    }
12
    
11
    // Bugzilla Report 25513
13
    expectBuildException("test5", "ANTLR returned: 1");
14
    }
12
    public void testCompressionLevel() {
15
    public void test6() {
13
        executeTarget("testCompressionLevel");
16
        executeTarget("test6");
14
    
17
    
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