File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java | |||
Method name: void checkGetRequest_Parameters(HTTPSamplerBase, HTTPSampleResult, String, URL, String, String, String, String, boolean)
|
Method name: void checkPostRequestUrlEncoded(HTTPSamplerBase, HTTPSampleResult, String, String, String, String, String, String, boolean)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | String expectedTitle = URLEncoder.encode(titleValue, contentEncoding);↵ | 1 | String expectedTitle = URLEncoder.encode(titleValue, contentEncoding);↵ | |
2 | String expectedDescription = URLEncoder.encode(descriptionValue, contentEncoding);↵ | 2 | String expectedDescription = URLEncoder.encode(descriptionValue, contentEncoding);↵ | |
3 | expectedQueryString = titleField + "=" + expectedTitle + "&" + descriptionField + "=" + expectedDescription; | 3 | expectedPostBody = titleField + "=" + expectedTitle + "&" + descriptionField + "=" + expectedDescription; | |
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 | 9 |
Number of mapped statements | 3 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | String expectedTitle = URLEncoder.encode(titleValue, contentEncoding); | 6 | String expectedTitle = URLEncoder.encode(titleValue, contentEncoding); | |||||||||||
8 | String expectedDescription = URLEncoder.encode(descriptionValue, contentEncoding); | 7 | String expectedDescription = URLEncoder.encode(descriptionValue, contentEncoding); | |||||||||||
9 | expectedQueryString = titleField + "=" + expectedTitle + "&" + descriptionField + "=" + expectedDescription; |
| 8 | expectedPostBody = titleField + "=" + expectedTitle + "&" + descriptionField + "=" + expectedDescription; |
Row | Violation |
---|