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 testSetGetAsText()
|
|||
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 | testSetGetAsText(e, "any string");↵ | |
3 | testSetGet(e, "");↵ | 3 | testSetGetAsText(e, "");↵ | |
4 | testSetGet(e, null);↵ | 4 | testSetGet↵ | |
5 | testSetGet(e, "${var}"); | 5 | AsText(e, "${var}"); | |
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 in different classes having the same super class |
Number of node comparisons | 20 |
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 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | ComboStringEditor e = new ComboStringEditor(); | 1 | ComboStringEditor e = new ComboStringEditor(); | ||||||||||||||||||
2 | testSetGet(e, "any string"); |
| 2 | testSetGetAsText(e, "any string"); | |||||||||||||||||
3 | testSetGet(e, ""); |
| 3 | testSetGetAsText(e, ""); | |||||||||||||||||
4 | testSetGet(e, null); |
| 4 | testSetGetAsText(e, "${var}"); | |||||||||||||||||
5 | testSetGet(e, "${var}"); |
| |
Row | Violation |
---|---|
1 | Expression testSetGet(e,"any string") cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression testSetGetAsText(e,"any string") cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression testSetGet(e,"any string") is a void method call, and thus it cannot be parameterized |
4 | Expression testSetGetAsText(e,"any string") is a void method call, and thus it cannot be parameterized |
5 | Expression testSetGet(e,"") cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression testSetGetAsText(e,"") cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression testSetGet(e,"") is a void method call, and thus it cannot be parameterized |
8 | Expression testSetGetAsText(e,"") is a void method call, and thus it cannot be parameterized |
9 | Expression testSetGet(e,null) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression testSetGetAsText(e,"${var}") cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression testSetGet(e,null) is a void method call, and thus it cannot be parameterized |
12 | Expression testSetGetAsText(e,"${var}") is a void method call, and thus it cannot be parameterized |
13 | 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 |