void tearDown() {
executeTarget("cleanup");
}
public void test1() {
expectBuildException("test1", "required argument, target, missing");
}
public void test2() {
expectBuildException("test2", "Invalid output directory");
}
public void test3() {
executeTarget("test3");
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/optional/ANTLRTest.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 tearDown() {↵ | | 1 | void test6() {↵
|
2 | executeTarget("cleanup");↵ | | 2 | executeTarget("test6");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void test1() {↵ | | 4 | public void test7() {↵
|
5 | expectBuildException("test1", "required argument, target, missing");↵ | | 5 | expectBuildException("test7", "Unable to determine generated class");↵
|
| | | 6 | }↵
|
|
| | | 7 | /**↵
|
| | | 8 | * This is a negative test for the super grammar (glib) option.↵
|
6 | }↵ | | 9 | ↵
|
| | | 10 | */↵
|
7 | public void test2() {↵ | | 11 | public void test8() {↵
|
8 | expectBuildException("test2", "Invalid output directory");↵ | | 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.↵
|
9 | }↵ | | 17 | ↵
|
| | | 18 | */↵
|
10 | public void test3() {↵ | | 19 | public void test9() {↵
|
11 | executeTarget("test3");↵ | | 20 | executeTarget("test9");↵
|
12 | | | 21 |
|
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 |