File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/modifier/TestURLRewritingModifier.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/control/TestCookieManager.java | |||
Method name: void setUp()
|
Method name: void setUp()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | context↵ | 1 | super.setUp();↵ | |
2 | = JMeterContextService.getContext();↵ | 2 | jmctx = JMeterContextService.getContext();↵ | |
3 | mod = new URLRewritingModifier();↵ | |||
4 | mod↵ | 3 | man = new CookieManager();↵ | |
5 | .setThreadContext(context); | 4 | man.setThreadContext(jmctx); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 5 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | super.setUp(); | ||||||||||||||||||||||
1 | context = JMeterContextService.getContext(); |
| 2 | jmctx = JMeterContextService.getContext(); | ||||||||||||||||||||
2 | mod = new URLRewritingModifier(); |
| 3 | man = new CookieManager(); | ||||||||||||||||||||
3 | mod.setThreadContext(context); |
| 4 | man.setThreadContext(jmctx); |
Row | Violation |
---|---|
1 | Expression context is a field being modified, and thus it cannot be parameterized |
2 | Expression jmctx is a field being modified, and thus it cannot be parameterized |
3 | Expression mod is a field being modified, and thus it cannot be parameterized |
4 | Expression man is a field being modified, and thus it cannot be parameterized |
5 | Expression context cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression jmctx cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression mod cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression man cannot be parameterized, because it has dependencies to/from statements that will be extracted |