while (e.hasMoreElements()) {
String name = (String) e.nextElement();
Class expect = (Class) elemMap.get(name);
assertNotNull("Support for "+name+" in IntrospectioNHelperTest?",
expect);
assertEquals("Return type of "+name, expect, ih.getElementType(name));
elemMap.remove(name);
}
while (e.hasMoreElements()) {
String name = (String) e.nextElement();
Class expect = (Class) attrMap.get(name);
assertNotNull("Support for "+name+" in IntrospectionHelperTest?",
expect);
assertEquals("Type of "+name, expect, ih.getAttributeType(name));
attrMap.remove(name);
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/IntrospectionHelperTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/IntrospectionHelperTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | while (e.hasMoreElements()) {↵ | | 1 | while (e.hasMoreElements()) {↵
|
2 | String name = (String) e.nextElement();↵ | | 2 | String name = (String) e.nextElement();↵
|
3 | Class expect = (Class) elemMap.get(name);↵ | | 3 | Class expect = (Class) attrMap.get(name);↵
|
4 | assertNotNull("Support for "+name+" in IntrospectioNHelperTest?",↵ | | 4 | assertNotNull("Support for "+name+" in IntrospectionHelperTest?",↵
|
5 | expect);↵ | | 5 | expect);↵
|
6 | assertEquals("Return type of "+name, expect, ih.getElementType(name));↵ | | 6 | assertEquals("Type of "+name, expect, ih.getAttributeType(name));↵
|
7 | elemMap.remove(name);↵ | | 7 | attrMap.remove(name);↵
|
8 | } | | 8 | }
|
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 |