void testFilesmatchDifferentOnemissing() { expectPropertyUnset("filesmatch-different-onemissing", "filesmatch-different-onemissing"); } public void testFilesmatchDifferentEol() { executeTarget("filesmatch-different-eol"); } public void testFilesmatchSameEol() { executeTarget("filesmatch-same-eol"); } public void testFilesmatchNeitherExist() { executeTarget("filesmatch-neitherexist"); }
void testResourcesmatchError() { expectBuildException("resourcesmatch-error", "should fail because no resources specified"); } public void testResourcesmatchEmpty() { executeTarget("resourcesmatch-match-empty"); } public void testResourcesmatchOne() { executeTarget("resourcesmatch-match-one"); } public void testResourcesmatchBinary() { executeTarget("resourcesmatch-match-binary"); }
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/ConditionTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testFilesmatchDifferentOnemissing() {
1
void test
2
        expectPropertyUnset("filesmatch-different-onemissing",
3
            "filesmatch-different-onemissing
2
ResourcesmatchError() {
3
        expectBuildException("resourcesmatch-error",
4
");
4
            "should fail because no resources specified");
5
    }
5
    }
6
    public void testFilesmatchDifferentEol() {
6
    public void testResourcesmatchEmpty() {
7
        executeTarget("filesmatch-different-eol");
7
        executeTarget("resourcesmatch-match-empty");
8
    }
8
    }
9
    public void testFilesmatchSameEol() {
9
    public void testResourcesmatchOne() {
10
        executeTarget("filesmatch-same-eol");
10
        executeTarget("resourcesmatch-match-one");
11
    }
11
    }
12
    public void testFilesmatchNeitherExist() {
12
    public void testResourcesmatchBinary() {
13
        executeTarget("filesmatch-neitherexist");
13
        executeTarget("resourcesmatch-match-binary");
14
    }
14
    }
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