File path: /jakarta-jmeter-2.3.2/test/src/org/apache/commons/cli/avalon/ClutilTestCase.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/commons/cli/avalon/ClutilTestCase.java | |||
Method name: void testSingleArg()
|
Method name: void testIncomplete2ArgsMixedNoEq()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | final int size = clOptions.size();↵ | 1 | final int size = clOptions.size();↵ | |
2 | assertEquals(size, 1);↵ | 2 | assertEquals(size, 2);↵ | |
3 | assertEquals(((CLOption) clOptions.get(0)).getDescriptor().getId(), FILE_OPT); | 3 | assertEquals(((CLOption) clOptions.get(1)).getDescriptor().getId(), CLEAR1_OPT); | |
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.0 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | final int size = clOptions.size(); | 6 | final int size = clOptions.size(); | ||||||||||||||
6 | assertEquals(size, 1); |
| 7 | assertEquals(size, 2); | |||||||||||||
7 | assertEquals(((CLOption)clOptions.get(0)).getDescriptor().getId(), FILE_OPT); |
| 8 | assertEquals(((CLOption)clOptions.get(1)).getDescriptor().getId(), CLEAR1_OPT); |
Row | Violation |
---|