File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java | |||
Method name: byte[] createExpectedFormdataOutput(String, String, String, String, String, String, boolean, boolean)
|
Method name: byte[] createExpectedFormdataOutput(String, String, String, String, String, String, boolean, boolean)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | output.write(CRLF);↵ | 1 | output.write(CRLF);↵ | |
2 | output.write("Content-Transfer-Encoding: 8bit".getBytes(HTTP_ENCODING));↵ | 2 | output.write("Content-Transfer-Encoding: 8bit".getBytes(ISO_8859_1));↵ | |
3 | output.write(CRLF);↵ | 3 | output.write(CRLF);↵ | |
4 | output.write(CRLF);↵ | 4 | output.write(CRLF);↵ | |
5 | if(contentEncoding != null) {↵ | 5 | if(contentEncoding != null) {↵ | |
6 | output.write(titleValue.getBytes(contentEncoding));↵ | 6 | output.write(titleValue.getBytes(contentEncoding));↵ | |
7 | }↵ | 7 | }↵ | |
8 | else {↵ | 8 | else {↵ | |
9 | output.write(titleValue.getBytes());↵ | 9 | output.write(titleValue.getBytes());↵ | |
10 | }↵ | 10 | }↵ | |
11 | output.write(CRLF);↵ | 11 | output.write(CRLF);↵ | |
12 | output.write(DASH_DASH);↵ | 12 | output.write(DASH_DASH);↵ | |
13 | output.write(boundaryString.getBytes(HTTP_ENCODING)); | 13 | output.write(boundaryString.getBytes(ISO_8859_1)); | |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 37 |
Number of mapped statements | 10 |
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) | 8.1 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16 | output.write(CRLF); | 15 | output.write(CRLF); | |||||||||||
17 | output.write("Content-Transfer-Encoding: 8bit".getBytes(HTTP_ENCODING)); |
| 16 | output.write("Content-Transfer-Encoding: 8bit".getBytes(ISO_8859_1)); | ||||||||||
|
| 17 | output.write(CRLF); | |||||||||||
18 | output.write(CRLF); | 18 | output.write(CRLF); | |||||||||||
19 | output.write(CRLF); | 18 | output.write(CRLF); | |||||||||||
20 | if (contentEncoding != null) | 19 | if (contentEncoding != null) | |||||||||||
21 | output.write(titleValue.getBytes(contentEncoding)); | 20 | output.write(titleValue.getBytes(contentEncoding)); | |||||||||||
else | else | |||||||||||||
22 | output.write(titleValue.getBytes()); | 21 | output.write(titleValue.getBytes()); | |||||||||||
23 | output.write(CRLF); | 22 | output.write(CRLF); | |||||||||||
24 | output.write(DASH_DASH); | 23 | output.write(DASH_DASH); | |||||||||||
25 | output.write(boundaryString.getBytes(HTTP_ENCODING)); |
| 24 | output.write(boundaryString.getBytes(ISO_8859_1)); |
Row | Violation |
---|---|
1 | Unmatched statement output.write(CRLF); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |