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: 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: 18 | Number of AST nodes: 18 | |||
1 | output.write("Content-Disposition: form-data; name=\"".getBytes(ISO_8859_1));↵ | 1 | output.write("Content-Disposition: form-data; name=\"".getBytes(ISO_8859_1));↵ | |
2 | output.write(titleField.getBytes(ISO_8859_1));↵ | 2 | output.write(descriptionField.getBytes(ISO_8859_1));↵ | |
3 | output.write("\"".getBytes(ISO_8859_1));↵ | 3 | output.write("\"".getBytes(ISO_8859_1));↵ | |
4 | output.write(CRLF);↵ | 4 | output.write(CRLF);↵ | |
5 | output.write("Content-Type: text/plain".getBytes(ISO_8859_1));↵ | 5 | output.write("Content-Type: text/plain".getBytes(ISO_8859_1));↵ | |
6 | if(contentEncoding != null) {↵ | 6 | if(contentEncoding != null) {↵ | |
7 | output.write("; charset=".getBytes(ISO_8859_1));↵ | 7 | output.write("; charset=".getBytes(ISO_8859_1));↵ | |
8 | output.write(contentEncoding.getBytes(ISO_8859_1));↵ | 8 | output.write(contentEncoding.getBytes(ISO_8859_1));↵ | |
9 | }↵ | 9 | }↵ | |
10 | output.write(CRLF);↵ | 10 | output.write(CRLF);↵ | |
11 | output.write("Content-Transfer-Encoding: 8bit".getBytes(ISO_8859_1));↵ | 11 | output.write("Content-Transfer-Encoding: 8bit".getBytes(ISO_8859_1));↵ | |
12 | output.write(CRLF);↵ | 12 | output.write(CRLF);↵ | |
13 | output.write(CRLF);↵ | 13 | output.write(CRLF);↵ | |
14 | if(contentEncoding != null) {↵ | 14 | if(contentEncoding != null) {↵ | |
15 | output.write(titleValue.getBytes(contentEncoding));↵ | 15 | output.write(descriptionValue.getBytes(contentEncoding));↵ | |
16 | }↵ | 16 | }↵ | |
17 | else {↵ | 17 | else {↵ | |
18 | output.write(titleValue.getBytes());↵ | 18 | output.write(descriptionValue.getBytes());↵ | |
19 | }↵ | 19 | }↵ | |
20 | output.write(CRLF);↵ | 20 | output.write(CRLF);↵ | |
21 | output.write(DASH_DASH);↵ | 21 | output.write(DASH_DASH);↵ | |
22 | output.write(boundaryString.getBytes(ISO_8859_1)); | 22 |
| |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 94 |
Number of mapped statements | 18 |
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) | 16.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | output.write("Content-Disposition: form-data; name=\"".getBytes(ISO_8859_1)); | 26 | output.write("Content-Disposition: form-data; name=\"".getBytes(ISO_8859_1)); | |||||||||||
8 | output.write(titleField.getBytes(ISO_8859_1)); |
| 27 | output.write(descriptionField.getBytes(ISO_8859_1)); | ||||||||||
9 | output.write("\"".getBytes(ISO_8859_1)); | 28 | output.write("\"".getBytes(ISO_8859_1)); | |||||||||||
10 | output.write(CRLF); | 29 | output.write(CRLF); | |||||||||||
11 | output.write("Content-Type: text/plain".getBytes(ISO_8859_1)); | 30 | output.write("Content-Type: text/plain".getBytes(ISO_8859_1)); | |||||||||||
12 | if (contentEncoding != null) | 31 | if (contentEncoding != null) | |||||||||||
13 | output.write("; charset=".getBytes(ISO_8859_1)); | 32 | output.write("; charset=".getBytes(ISO_8859_1)); | |||||||||||
14 | output.write(contentEncoding.getBytes(ISO_8859_1)); | 33 | output.write(contentEncoding.getBytes(ISO_8859_1)); | |||||||||||
15 | output.write(CRLF); | 34 | output.write(CRLF); | |||||||||||
16 | output.write("Content-Transfer-Encoding: 8bit".getBytes(ISO_8859_1)); | 35 | output.write("Content-Transfer-Encoding: 8bit".getBytes(ISO_8859_1)); | |||||||||||
17 | output.write(CRLF); | 36 | output.write(CRLF); | |||||||||||
18 | output.write(CRLF); | 37 | output.write(CRLF); | |||||||||||
19 | if (contentEncoding != null) | 38 | if (contentEncoding != null) | |||||||||||
20 | output.write(titleValue.getBytes(contentEncoding)); |
| 39 | output.write(descriptionValue.getBytes(contentEncoding)); | ||||||||||
else | else | |||||||||||||
21 | output.write(titleValue.getBytes()); |
| 40 | output.write(descriptionValue.getBytes()); | ||||||||||
22 | output.write(CRLF); | 41 | output.write(CRLF); | |||||||||||
23 | output.write(DASH_DASH); | 42 | output.write(DASH_DASH); | |||||||||||
24 | output.write(boundaryString.getBytes(ISO_8859_1)); | 43 | output.write(boundaryString.getBytes(ISO_8859_1)); |
Row | Violation |
---|