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 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/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 test3() {
1
void testResourcesmatchError() {
2
        expectLog("test3", "\n"+
2
        expectBuildException("res
3
                              "    This \n"+
4
                              "    is\n"+
5
                              "    a \n"+
6
                              "    multiline\n"+
7
                              "    message\n"+
8
                              "    
3
ourcesmatch-error",
9
");
4
            "should fail because no resources specified");
10
    }
5
    }
11
    public void testFile() throws Exception {
6
    public void testResourcesmatchEmpty() {
12
        executeTarget("testFile");
7
        executeTarget("resourcesmatch-match-empty");
13
    }
8
    }
14
    public void testAppend() throws Exception {
9
    public void testResourcesmatchOne() {
15
        executeTarget("testAppend");
10
        executeTarget("resourcesmatch-match-one");
16
    }
11
    }
17
    public void testEmptyEncoding() throws Exception {
12
    public void test
18
        executeTarget("testEmptyEncoding
13
ResourcesmatchBinary() {
19
");
14
        executeTarget("resourcesmatch-match-binary");
20
    
15
    
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