void test5() { executeTarget("test5"); } public void test6() { expectBuildException("test6", "required argument not specified"); } public void test7() { expectBuildException("test7", "empty token not allowed"); } public void test8() { executeTarget("test8");
void test6() { executeTarget("test6"); } public void test7() { expectBuildException("test7", "Unable to determine generated class"); } /** * This is a negative test for the super grammar (glib) option. */ public void test8() { expectBuildException("test8", "Invalid super grammar file"); } /** * This is a positive test for the super grammar (glib) option. ANTLR * will throw an error if everything is not correct. */ public void test9() { executeTarget("test9");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ReplaceTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/ANTLRTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void test5() {
1
void test6() {
2
        executeTarget("test5");
2
        executeTarget("test6");
3
    }
3
    }
4
    public void test6() {
4
    public void test7() {
5
        expectBuildException("test6", "required argument not
5
        expectBuildException("test7", "Unable to determine generated class");
6
    }
7
    /**
6
 specified");
8
     * This is a negative test for the super grammar (glib) option.
7
    }
9
    
10
 */
8
    public void test7() {
11
    public void test8() {
9
        expectBuildException("test7", "empty token not allowed");
12
        expectBuildException("test8", "Invalid super grammar file");
13
    }
14
    /**
15
     * This is a positive test for the super grammar (glib) option.  ANTLR
16
     * will throw an error if everything is not correct.
10
    }
17
    
18
 */
11
    public void test8() {
19
    public void test9() {
12
        executeTarget("test8");
20
        executeTarget("test9");
13
    
21
    
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