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");
}
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");
}
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/ReplaceTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void test6() {↵ | | 1 | void test5() {↵
|
2 | executeTarget("test6");↵ | | 2 | executeTarget("test5");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void test7() {↵ | | 4 | public void test6() {↵
|
5 | expectBuildException("test7", "Unable to determine generated class");↵ | | 5 | expectBuildException("test6", "↵
|
6 | }↵ | | |
|
|
7 | /**↵ | | |
|
8 | * This is a negative test for the super grammar (glib) option.↵ | | 6 | required argument not specified");↵
|
9 | */↵ | | 7 | }↵
|
|
10 | public void test8() {↵ | | 8 | public void test7() {↵
|
11 | expectBuildException("test8", "Invalid super grammar file");↵ | | 9 | expectBuildException("test7", "↵
|
12 | }↵ | | |
|
|
13 | /**↵ | | |
|
14 | * This is a positive test for the super grammar (glib) option. ANTLR↵ | | |
|
15 | * will throw an error if everything is not correct.↵ | | |
|
16 | */↵ | | 10 | empty token not allowed");↵
|
| | | 11 | }↵
|
|
17 | public void test9() {↵ | | 12 | public void test8() {↵
|
18 | executeTarget("test9");↵ | | 13 | executeTarget("test8");↵
|
19 | } | | 14 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |