void testFilesmatchDifferentSizes() { expectPropertyUnset("filesmatch-different-sizes", "filesmatch-different-sizes"); } public void testFilesmatchDifferentOnemissing() { expectPropertyUnset("filesmatch-different-onemissing", "filesmatch-different-onemissing"); } public void testFilesmatchDifferentEol() { executeTarget("filesmatch-different-eol"); } public void testFilesmatchSameEol() { executeTarget("filesmatch-same-eol");
void test2() { expectLog("test2", "OUTPUT OF ECHO"); } public void test3() { expectLog("test3", "\n"+ " This \n"+ " is\n"+ " a \n"+ " multiline\n"+ " message\n"+ " "); } public void testFile() throws Exception { executeTarget("testFile"); } public void testAppend() throws Exception { executeTarget("testAppend");
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/EchoTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testFilesmatchDifferentSizes() {
1
void test
2
        expectPropertyUnset("filesmatch-different-sizes",
3
            "filesmatch-different-sizes
2
2() {
4
");
3
        expectLog("test2", "OUTPUT OF ECHO");
5
    }
4
    }
6
    public void testFilesmatchDifferentOnemissing() {
5
    public void test
7
        expectPropertyUnset("filesmatch-different-onemissing",
8
            "filesmatch-different-onemissing
6
3() {
7
        expectLog("test3", "\n"+
8
                              "    This \n"+
9
                              "    is\n"+
10
                              "    a \n"+
11
                              "    multiline\n"+
12
                              "    message\n"+
9
");
13
                              "    ");
10
    }
14
    }
11
    public void testFilesmatchDifferentEol() {
15
    public void testFile() throws Exception {
12
        executeTarget("filesmatch-different-eol");
16
        executeTarget("testFile");
13
    }
17
    }
14
    public void testFilesmatchSameEol() {
18
    public void testAppend() throws Exception {
15
        executeTarget("filesmatch-same-eol");
19
        executeTarget("testAppend");
16
    
20
    
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