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/PostWriterTest.java | |||
Method name: byte[] createExpectedFilepartOutput(String, String, File, String, byte[], boolean, boolean)
|
Method name: byte[] createExpectedFilepartOutput(String, String, File, String, byte[], boolean, boolean)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | final ByteArrayOutputStream output = new ByteArrayOutputStream();↵ | 1 | final ByteArrayOutputStream output = new ByteArrayOutputStream();↵ | |
2 | if(firstMultipart) {↵ | 2 | if(firstMultipart) {↵ | |
3 | output.write(DASH_DASH);↵ | 3 | output.write(DASH_DASH);↵ | |
4 | output.write(boundaryString.getBytes(ISO_8859_1));↵ | 4 | output.write(boundaryString.getBytes(httpEncoding));↵ | |
5 | output.write(CRLF);↵ | 5 | output.write(CRLF);↵ | |
6 | } | 6 |
| |
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 | 17 |
Number of mapped statements | 5 |
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) | 4.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | final ByteArrayOutputStream output = new ByteArrayOutputStream(); | 3 | final ByteArrayOutputStream output = new ByteArrayOutputStream(); | |||||||||||
3 | if (firstMultipart) | 4 | if (firstMultipart) | |||||||||||
4 | output.write(DASH_DASH); | 5 | output.write(DASH_DASH); | |||||||||||
5 | output.write(boundaryString.getBytes(ISO_8859_1)); |
| 6 | output.write(boundaryString.getBytes(httpEncoding)); | ||||||||||
6 | output.write(CRLF); | 7 | output.write(CRLF); |
Row | Violation |
---|