File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/testbeans/gui/TestFieldStringEditor.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: 4 | 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, "${var}"); | 4 | testSetGetAsText(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 declared in the same class |
Number of node comparisons | 16 |
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 2 |
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, "${var}"); |
| 4 | testSetGetAsText(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,"${var}") 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,"${var}") 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 |