assertNotNull(parts);
assertEquals(2, parts.length);
assertEquals("A", parts[0]);
assertEquals("B", parts[1]);
assertNotNull(parts);
assertEquals(2, parts.length);
assertEquals("A", parts[0]);
assertEquals("B", parts[1]);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/facade/ImplementationSpecificArgumentTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/facade/ImplementationSpecificArgumentTest.java
|
Method name: void testDependsOnImplementation()
|
|
Method name: void testDependsOnImplementation()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | assertNotNull(parts);↵ | | 1 | assertNotNull(parts);↵
|
2 | assertEquals(2, parts.length);↵ | | 2 | assertEquals(2, parts.length);↵
|
3 | assertEquals("A", parts[0]);↵ | | 3 | assertEquals("A", parts[0]);↵
|
4 | assertEquals("B", parts[1]); | | 4 | assertEquals("B", parts[1]);
|
See real code fragment |
|
See real code fragment |
Summary
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 16 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
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.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
4 | assertNotNull(parts); | | 9 | assertNotNull(parts); |
5 | assertEquals(2, parts.length); | | 10 | assertEquals(2, parts.length); |
6 | assertEquals("A", parts[0]); | | 11 | assertEquals("A", parts[0]); |
7 | assertEquals("B", parts[1]); | | 12 | assertEquals("B", parts[1]); |
Precondition Violations (0)
Row |
Violation |