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 testAddCondition() { executeTarget("addcondition"); } public void testAddFilter() { executeTarget("addfilter"); } public void testAddSelector() { executeTarget("addselector"); } public void testNestedA() { expectLogContaining("nested.a", "add A called");
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/types/AddTypeTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testFilesmatchDifferentEol() {
1
void testAddCondition() {
2
        executeTarget("filesmatch-different-eol");
2
        executeTarget("addcondition");
3
    }
3
    }
4
    public void testFilesmatchSameEol() {
4
    public void testAddFilter() {
5
        executeTarget("filesmatch-same-eol");
5
        executeTarget("addfilter");
6
    }
6
    }
7
    public void testFilesmatchNeitherExist() {
7
    public void testAddSelector() {
8
        executeTarget("filesmatch-neitherexist");
8
        executeTarget("addselector");
9
    }
9
    }
10
    public void testContains() {
10
    public void testNestedA() {
11
        expectPropertySet("contains","contains");
11
        expectLogContaining("nested.a", "add A called");
12
    
12
    
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