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 testTestTarTask() throws java.io.IOException { testLogoExtraction("testTarTask"); } public void testTestGzipTarTask() throws java.io.IOException { testLogoExtraction("testGzipTarTask"); } public void testTestBzip2TarTask() throws java.io.IOException { testLogoExtraction("testBzip2TarTask"); } public void testSrcDirTest() { expectBuildException("srcDirTest", "Src cannot be a directory."); }
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/UntarTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testEmptySkip() {
1
void test
2
        executeTarget("testEmptySkip");
3
    }
4
    // Bugzilla Report 30365
5
    public void testZipEmptyDir() {
6
        executeTarget("zipEmptyDir");
7
    }
8
    // Bugzilla Report 40258
9
    public void testZipEmptyDirFilesOnly() {
10
        executeTarget("zipEmptyDirFilesOnly
2
TestTarTask() throws java.io.IOException {
3
        testLogoExtraction("testTarTask");
4
    }
5
    public void testTestGzipTarTask() throws java.io.IOException {
6
        testLogoExtraction("testGzipTarTask");
7
    }
8
    public void testTestBzip2TarTask() throws java.io.IOException {
11
");
9
        testLogoExtraction("testBzip2TarTask");
12
    }
10
    }
13
    public void testZipEmptyCreate() {
11
    public void testSrcDirTest() {
14
        expectLogContaining("zipEmptyCreate", "Note: creating empty");
12
        expectBuildException("srcDirTest", "Src cannot be a directory.");
15
    }
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