void testFilesmatchDifferentEol() { executeTarget("filesmatch-different-eol"); } public void testFilesmatchSameEol() { executeTarget("filesmatch-same-eol"); } public void testFilesmatchNeitherExist() { executeTarget("filesmatch-neitherexist"); } public void testContains() { expectPropertySet("contains","contains");
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/ConditionTest.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 testFilesmatchDifferentEol() {
1
void testEmptySkip() {
2
        executeTarget("filesmatch-different-eol");
2
        executeTarget("
3
    }
3
testEmptySkip");
4
    }
5
    // Bugzilla Report 30365
4
    public void testFilesmatchSameEol() {
6
    public void testZipEmptyDir() {
5
        executeTarget("filesmatch-same-eol");
7
        executeTarget("
6
    }
7
    public void testFilesmatchNeitherExist
8
zipEmptyDir");
9
    }
10
    // Bugzilla Report 40258
8
() {
11
    public void testZipEmptyDirFilesOnly() {
9
        executeTarget("filesmatch-neitherexist");
12
        executeTarget("zipEmptyDirFilesOnly");
10
    }
13
    }
11
    public void testContains() {
14
    public void testZipEmptyCreate() {
12
        expectPropertySet("contains","contains");
15
        expectLogContaining("zipEmptyCreate", "Note: creating empty");
13
    
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