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: 4 | Number of AST nodes: 4 | |||
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 |
| |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
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) | 1.8 |
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); |
Row | Violation |
---|