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 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"); }
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 testFilesmatchDifferentOnemissing() {
1
void test
2
        expectPropertyUnset("filesmatch-different-onemissing",
3
            "filesmatch-different-onemissing
2
3() {
3
        expectLog("test3", "\n"+
4
                              "    This \n"+
5
                              "    is\n"+
6
                              "    a \n"+
7
                              "    multiline\n"+
8
                              "    message\n"+
4
");
9
                              "    ");
5
    }
10
    }
6
    public void testFilesmatchDifferentEol() {
11
    public void testFile() throws Exception {
7
        executeTarget("filesmatch-different-eol");
12
        executeTarget("testFile");
8
    }
13
    }
9
    public void testFilesmatchSameEol() {
14
    public void testAppend() throws Exception {
10
        executeTarget("filesmatch-same-eol");
15
        executeTarget("testAppend");
11
    }
16
    }
12
    public void testFilesmatchNeitherExist() {
17
    public void testEmptyEncoding() throws Exception {
13
        executeTarget("filesmatch-neitherexist");
18
        executeTarget("testEmptyEncoding");
14
    }
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