File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/IncludeTest.java | File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/IncludeTest.java | |||
Method name: void testParseErrorInIncluding()
|
Method name: void testParseErrorInIncluded()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | try {↵ | 1 | try {↵ | |
2 | configureProject("src/etc/testcases/core/include/including_file_parse_error/build.xml");↵ | 2 | configureProject("src/etc/testcases/core/include/included_file_parse_error/build.xml");↵ | |
3 | fail("should have caused a parser exception");↵ | 3 | fail("should have caused a parser exception");↵ | |
4 | } catch (BuildException e) {↵ | 4 | } catch (BuildException e) {↵ | |
5 | assertTrue(e.getLocation().toString()↵ | 5 | assertTrue(e.getLocation().toString()↵ | |
6 | + " should refer to build.xml",↵ | 6 | + " should refer to included_file.xml",↵ | |
7 | e.getLocation().toString().indexOf("build↵ | 7 | e.getLocation().toString()↵ | |
8 | .xml:") > -1);↵ | 8 | .indexOf("included_file.xml:") > -1);↵ | |
9 | } | 9 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | try |
| 1 | try | |||||||||||||
2 | configureProject("src/etc/testcases/core/include/including_file_parse_error/build.xml"); |
| 2 | configureProject("src/etc/testcases/core/include/included_file_parse_error/build.xml"); | |||||||||||||
3 | fail("should have caused a parser exception"); | 3 | fail("should have caused a parser exception"); |
Row | Violation |
---|