void test1() { expectBuildException("test1", "required argument, target, missing"); } public void test2() { expectBuildException("test2", "Invalid output directory"); } public void test3() { executeTarget("test3"); } public void test4() { executeTarget("test4");
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/optional/ANTLRTest.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 test1() {
1
void test2() {
2
        expectBuildException("test1", "required argument, target, missing");
2
        expectLog("test2", "OUTPUT OF ECHO");
3
    }
3
    }
4
    public void test2() {
4
    public void test3() {
5
        expectBuildException("test2", "Invalid output directory
5
        expectLog("test3", "\n"+
6
                              "    This \n"+
7
                              "    is\n"+
8
                              "    a \n"+
9
                              "    multiline\n"+
10
                              "    message\n"+
6
");
11
                              "    ");
7
    }
12
    }
8
    public void test3() {
13
    public void testFile() throws Exception {
9
        executeTarget("test3");
14
        executeTarget("testFile");
10
    }
15
    }
11
    public void test4() {
16
    public void testAppend() throws Exception {
12
        executeTarget("test4");
17
        executeTarget("testAppend");
13
    
18
    
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