File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java | File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java | |||
Method name: void testEntryReference()
|
Method name: void testNestedCatalog()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | Source result = catalog.resolve(uri, null↵ | 1 | InputSource result = catalog1.resolveEntity(publicId,↵ | |
2 | );↵ | 2 | "nap:chemical+brothers");↵ | |
3 | assertNotNull(result);↵ | 3 | assertNotNull(result);↵ | |
4 | assertEquals(toURLString(xmlFile),↵ | 4 | assertEquals(toURLString(dtdFile),↵ | |
5 | result.getSystemId()); | 5 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28 | assertNotNull(result); |
| 19 | assertNotNull(result); | ||||||||||||||
29 | assertEquals(toURLString(xmlFile), result.getSystemId()); |
| 20 | assertEquals(toURLString(dtdFile), result.getSystemId()); |
Row | Violation |
---|---|
1 | Type javax.xml.transform.Source of variable result does not match with type org.xml.sax.InputSource of variable result |
2 | Type javax.xml.transform.Source of variable result does not match with type org.xml.sax.InputSource of variable result |