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"); }
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"); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/ANTLRTest.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 testZipEmptyDir() {
2
        executeTarget("test3");
2
        executeTarget("
3
    }
3
zipEmptyDir");
4
    }
5
    // Bugzilla Report 40258
4
    public void test4() {
6
    public void testZipEmptyDirFilesOnly() {
5
        executeTarget("test4");
7
        executeTarget("zipEmptyDirFilesOnly");
6
    }
8
    }
7
    public void test5() {
9
    public void test
8
        // should print "panic: Cannot find importVocab file 'JavaTokenTypes.txt'"
10
ZipEmptyCreate() {
11
        expectLogContaining("zipEmptyCreate", "Note: creating empty");
9
    
12
    }
10
    // since it needs to run java.g first before java.tree.g
13
    // 
11
        expectBuildException("test5", "ANTLR returned: 1");
12
    }
14
Bugzilla Report 25513
13
    public void test6() {
15
    public void testCompressionLevel() {
14
        executeTarget("test6");
16
        executeTarget("testCompressionLevel");
15
    }
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