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/PostWriterTest.java | |||
Method name: void testSendFormData_Urlencoded()
|
Method name: void testSendFormData_Urlencoded()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | checkContentLength(connection, expectedUrl.length);↵ | 1 | checkContentLength(connection, expectedUrl.length);↵ | |
2 | checkArraysHaveSameContent(expectedUrl, connection.getOutputStreamContent());↵ | 2 | checkArraysHaveSameContent(expectedUrl, connection.getOutputStreamContent());↵ | |
3 | assertEquals(↵ | 3 | assertEquals(↵ | |
4 | URLDecoder.decode(new String(expectedUrl, "US-ASCII"), "ISO-8859-1"), // HTTPSampler uses ISO-8859-1 as default encoding↵ | 4 | URLDecoder.decode(new String(expectedUrl, "US-ASCII"), contentEncoding), ↵ | |
5 | URLDecoder.decode(new String(connection.getOutputStreamContent(), "US-ASCII"), "ISO-8859-1")); // HTTPSampler uses ISO-8859-1 as default encoding↵ | 5 | URLDecoder.decode(new String(connection.getOutputStreamContent(), "US-ASCII"), contentEncoding)); ↵ | |
6 | connection.disconnect(); | 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.0 |
Clones location | Clones are in the same method |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
86 | checkContentLength(connection, expectedUrl.length); | 108 | checkContentLength(connection, expectedUrl.length); | ||||||||||||||
87 | checkArraysHaveSameContent(expectedUrl, connection.getOutputStreamContent()); | 109 | checkArraysHaveSameContent(expectedUrl, connection.getOutputStreamContent()); | ||||||||||||||
88 | assertEquals(URLDecoder.decode(new String(expectedUrl, "US-ASCII"), "ISO-8859-1"), URLDecoder.decode(new String(connection.getOutputStreamContent(), "US-ASCII"), "ISO-8859-1")); |
| 110 | assertEquals(URLDecoder.decode(new String(expectedUrl, "US-ASCII"), contentEncoding), URLDecoder.decode(new String(connection.getOutputStreamContent(), "US-ASCII"), contentEncoding)); | |||||||||||||
89 | connection.disconnect(); | 111 | connection.disconnect(); |
Row | Violation |
---|