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 test4() { expectBuildException("test4", "src invalid"); } public void test5() { expectBuildException("test5", "dest invalid (or no http-server on local machine)"); } public void test6() { executeTarget("test6"); } public void testUseTimestamp() { executeTarget("testUseTimestamp"); } public void testUseTomorrow() { executeTarget("testUseTomorrow");
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/GetTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void test2() {
1
void test4() {
2
        expectLog("test2", "OUTPUT OF ECHO");
2
        expectBuildException("test4", "src invalid");
3
    }
3
    }
4
    public void test3() {
4
    public void test5() {
5
        expectLog("test3", "\n"+
5
        expectBuildException("test5", "
6
                              "    This \n"+
7
                              "    is\n"+
8
                              "    a \n"+
9
                              "    multiline\n"+
10
                              "    message\n"+
11
                              "    ");
6
dest invalid (or no http-server on local machine)");
12
    }
7
    }
13
    public void testFile() throws Exception {
8
    public void test6() {
14
        executeTarget("testFile");
9
        executeTarget("test6");
15
    }
10
    }
16
    public void testAppend() throws Exception {
11
    public void testUseTimestamp() {
17
        executeTarget("testAppend");
12
        executeTarget("testUseTimestamp");
18
    }
13
    }
19
    public void testEmptyEncoding() throws Exception {
14
    public void testUseTomorrow() {
20
        executeTarget("testEmptyEncoding");
15
        executeTarget("testUseTomorrow");
21
    
16
    
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