File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplers.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplers.java | |||
Method name: void testMakingUrl4()
|
Method name: void testMakingUrl6()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | HTTPSamplerBase config = new HTTPNullSampler();↵ | 1 | HTTPSamplerBase config = new HTTPNullSampler();↵ | |
2 | config.setProtocol("http");↵ | 2 | config.setProtocol("http");↵ | |
3 | config.setMethod(HTTPSamplerBase.GET);↵ | 3 | config.setMethod(HTTPSamplerBase.GET);↵ | |
4 | config.addArgument("param1", "value1", "=");↵ | 4 | config.addArgument("param1", "", "");↵ | |
5 | config.setPath("/index.html");↵ | 5 | config.setPath("/index.html");↵ | |
6 | config.setDomain("www.apache.org");↵ | 6 | config.setDomain("www.apache.org");↵ | |
7 | assertEquals("http://www.apache.org/index.html?param1=value1", config.getUrl().toString()); | 7 | assertEquals("http://www.apache.org/index.html?param1", config.getUrl().toString()); | |
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 declared in the same class |
Number of node comparisons | 37 |
Number of mapped statements | 7 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | HTTPSamplerBase config = new HTTPNullSampler(); | 1 | HTTPSamplerBase config = new HTTPNullSampler(); | ||||||||||||||
2 | config.setProtocol("http"); | 2 | config.setProtocol("http"); | ||||||||||||||
3 | config.setMethod(HTTPSamplerBase.GET); | 3 | config.setMethod(HTTPSamplerBase.GET); | ||||||||||||||
4 | config.addArgument("param1", "value1", "="); |
| 4 | config.addArgument("param1", "", ""); | |||||||||||||
5 | config.setPath("/index.html"); | 5 | config.setPath("/index.html"); | ||||||||||||||
6 | config.setDomain("www.apache.org"); | 6 | config.setDomain("www.apache.org"); | ||||||||||||||
7 | assertEquals("http://www.apache.org/index.html?param1=value1", config.getUrl().toString()); |
| 7 | assertEquals("http://www.apache.org/index.html?param1", config.getUrl().toString()); |
Row | Violation |
---|