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"); } public void testEmptyEncoding() throws Exception { executeTarget("testEmptyEncoding");
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"); } public void testFilesmatchNeitherExist() { executeTarget("filesmatch-neitherexist");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/EchoTest.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 test2() {
1
void test
2
        expectLog("test2", "OUTPUT OF ECHO
2
FilesmatchDifferentSizes() {
3
        expectPropertyUnset("filesmatch-different-sizes",
3
");
4
            "filesmatch-different-sizes");
4
    }
5
    }
5
    public void test3() {
6
    public void test
6
        expectLog("test3", "\n"+
7
                              "    This \n"+
8
                              "    is\n"+
9
                              "    a \n"+
10
                              "    multiline\n"+
11
                              "    message\n"+
12
                              "    
7
FilesmatchDifferentOnemissing() {
8
        expectPropertyUnset("filesmatch-different-onemissing",
13
");
9
            "filesmatch-different-onemissing");
14
    }
10
    }
15
    public void testFile() throws Exception {
11
    public void testFilesmatchDifferentEol() {
16
        executeTarget("testFile");
12
        executeTarget("filesmatch-different-eol");
17
    }
13
    }
18
    public void testAppend() throws Exception {
14
    public void testFilesmatchSameEol() {
19
        executeTarget("testAppend");
15
        executeTarget("filesmatch-same-eol");
20
    }
16
    }
21
    public void testEmptyEncoding() throws Exception {
17
    public void testFilesmatchNeitherExist() {
22
        executeTarget("testEmptyEncoding");
18
        executeTarget("filesmatch-neitherexist");
23
    
19
    
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