File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/control/TestSwitchController.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/control/TestSwitchController.java | |||
Method name: void runSimpleTest2(String, String, String)
|
Method name: void runSimpleTest(String, String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | assertEquals("Loop="+i,"before", nextName(controller));↵ | 1 | assertEquals("Loop " + i, "before", nextName(controller));↵ | |
2 | if (exp!=null){↵ | 2 | if (exp!=null){↵ | |
3 | assertEquals("Loop="+i,exp, nextName(controller));↵ | 3 | assertEquals("Loop " + i, exp, nextName(controller));↵ | |
4 | }↵ | 4 | }↵ | |
5 | assertEquals("Loop="+i,"after", nextName(controller)); | 5 | assertEquals("Loop " + i, "after", nextName(controller)); | |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
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) | 17.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19 | assertEquals("Loop=" + i, "before", nextName(controller)); |
| 13 | assertEquals("Loop " + i, "before", nextName(controller)); | ||||||||||
20 | if (exp != null) | 14 | if (exp != null) | |||||||||||
21 | assertEquals("Loop=" + i, exp, nextName(controller)); |
| 15 | assertEquals("Loop " + i, exp, nextName(controller)); | ||||||||||
22 | assertEquals("Loop=" + i, "after", nextName(controller)); |
| 16 | assertEquals("Loop " + i, "after", nextName(controller)); |
Row | Violation |
---|