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: 9 | Number of AST nodes: 9 | |||
1 | if(firstMultipart) {↵ | 1 | if(firstMultipart) {↵ | |
2 | output.write(DASH_DASH);↵ | 2 | output.write(DASH_DASH);↵ | |
3 | output.write(boundaryString.getBytes(HTTP_ENCODING));↵ | 3 | output.write(boundaryString.getBytes(ISO_8859_1));↵ | |
4 | output.write(CRLF);↵ | 4 | output.write(CRLF);↵ | |
5 | }↵ | 5 | }↵ | |
6 | output.write("Content-Disposition: form-data; name=\"".getBytes(HTTP_ENCODING));↵ | 6 | output.write("Content-Disposition: form-data; name=\"".getBytes(ISO_8859_1));↵ | |
7 | output.write(titleField.getBytes(HTTP_ENCODING));↵ | 7 | output.write(titleField.getBytes(ISO_8859_1));↵ | |
8 | output.write("\"".getBytes(HTTP_ENCODING));↵ | 8 | output.write("\"".getBytes(ISO_8859_1));↵ | |
9 | output.write(CRLF);↵ | 9 | output.write(CRLF);↵ | |
10 | output.write("Content-Type: ".getBytes(HTTP_ENCODING)); | 10 | output.write("Content-Type: text/plain".getBytes(ISO_8859_1)); | |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 41 |
Number of mapped statements | 9 |
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) | 17.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | if (firstMultipart) | 3 | if (firstMultipart) | ||||||||||||||
5 | output.write(DASH_DASH); | 4 | output.write(DASH_DASH); | ||||||||||||||
6 | output.write(boundaryString.getBytes(HTTP_ENCODING)); |
| 5 | output.write(boundaryString.getBytes(ISO_8859_1)); | |||||||||||||
7 | output.write(CRLF); | 6 | output.write(CRLF); | ||||||||||||||
8 | output.write("Content-Disposition: form-data; name=\"".getBytes(HTTP_ENCODING)); |
| 7 | output.write("Content-Disposition: form-data; name=\"".getBytes(ISO_8859_1)); | |||||||||||||
9 | output.write(titleField.getBytes(HTTP_ENCODING)); |
| 8 | output.write(titleField.getBytes(ISO_8859_1)); | |||||||||||||
10 | output.write("\"".getBytes(HTTP_ENCODING)); |
| 9 | output.write("\"".getBytes(ISO_8859_1)); | |||||||||||||
11 | output.write(CRLF); | 10 | output.write(CRLF); | ||||||||||||||
12 | output.write("Content-Type: ".getBytes(HTTP_ENCODING)); |
| 11 | output.write("Content-Type: text/plain".getBytes(ISO_8859_1)); |
Row | Violation |
---|