ComboStringEditor e = new ComboStringEditor();
testSetGet(e, "any string");
testSetGet(e, "");
testSetGet(e, null);
testSetGet(e, "${var}");
ComboStringEditor e = new ComboStringEditor();
testSetGet(e, "any string");
testSetGet(e, "");
testSetGet(e, "${var}");
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/testbeans/gui/TestComboStringEditor.java
|
|
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/testbeans/gui/TestFieldStringEditor.java
|
Method name: void testSetGet()
|
|
Method name: void testSetGet()
|
Number of AST nodes: 5
|
|
Number of AST nodes: 4
|
|
1 | ComboStringEditor e = new ComboStringEditor();↵ | | 1 | ComboStringEditor e = new ComboStringEditor();↵
|
|
2 | testSetGet(e, "any string");↵ | | 2 | testSetGet(e, "any string");↵
|
3 | testSetGet(e, "");↵ | | 3 | testSetGet(e, "");↵
|
4 | testSetGet(e, null);↵ | | 4 | ↵
|
5 | testSetGet(e, "${var}"); | | 5 | testSetGet(e, "${var}");
|
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 different classes having the same super class |
Number of node comparisons | 20 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | ComboStringEditor e = new ComboStringEditor(); | | 1 | ComboStringEditor e = new ComboStringEditor(); |
2 | testSetGet(e, "any string"); | | 2 | testSetGet(e, "any string"); |
3 | testSetGet(e, ""); | | 3 | testSetGet(e, ""); |
4 | testSetGet(e, null); | | 4 | testSetGet(e, "${var}"); |
5 | testSetGet(e, "${var}"); | | | |
Precondition Violations (1)
Row |
Violation |
1 | Unmatched statement testSetGet(e,"${var}"); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |