void testMakingUrl7() throws Exception { HTTPSamplerBase config = new HTTPNullSampler(); config.setProtocol("http"); config.setMethod(HTTPSamplerBase.GET); config.parseArguments("param1=value1"); config.setPath("/index.html"); config.setDomain("www.apache.org"); assertEquals("http://www.apache.org/index.html?param1=value1", config.getUrl().toString()); } public void testMakingUrl8() throws Exception { HTTPSamplerBase config = new HTTPNullSampler(); config.setProtocol("http"); config.setMethod(HTTPSamplerBase.GET); config.parseArguments("param1="); config.setPath("/index.html"); config.setDomain("www.apache.org"); assertEquals("http://www.apache.org/index.html?param1=", config.getUrl().toString()); } public void testMakingUrl9() throws Exception { HTTPSamplerBase config = new HTTPNullSampler(); config.setProtocol("http"); config.setMethod(HTTPSamplerBase.GET); config.parseArguments("param1"); config.setPath("/index.html"); config.setDomain("www.apache.org"); assertEquals("http://www.apache.org/index.html?param1", config.getUrl().toString());
void testMakingUrl8() throws Exception { HTTPSamplerBase config = new HTTPNullSampler(); config.setProtocol("http"); config.setMethod(HTTPSamplerBase.GET); config.parseArguments("param1="); config.setPath("/index.html"); config.setDomain("www.apache.org"); assertEquals("http://www.apache.org/index.html?param1=", config.getUrl().toString()); } public void testMakingUrl9() throws Exception { HTTPSamplerBase config = new HTTPNullSampler(); config.setProtocol("http"); config.setMethod(HTTPSamplerBase.GET); config.parseArguments("param1"); config.setPath("/index.html"); config.setDomain("www.apache.org"); assertEquals("http://www.apache.org/index.html?param1", config.getUrl().toString()); } public void testMakingUrl10() throws Exception { HTTPSamplerBase config = new HTTPNullSampler(); config.setProtocol("http"); config.setMethod(HTTPSamplerBase.GET); config.parseArguments(""); config.setPath("/index.html"); config.setDomain("www.apache.org"); assertEquals("http://www.apache.org/index.html", config.getUrl().toString());
Clone fragments detected by clone detection tool
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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testMakingUrl7() throws Exception {
2
            HTTPSamplerBase config = new HTTPNullSampler();
3
            config.setProtocol("http");
4
            config.setMethod(HTTPSamplerBase.GET);
5
            config.parseArguments("param1=value1");
6
            config.setPath("/index.html");
7
            config.setDomain("www.apache.org");
8
            assertEquals("http://www.apache.org/index.html?param1=value1", config.getUrl().toString());
9
        }
10
        public void testMakingUrl8() throws Exception {
1
void testMakingUrl8() throws Exception {
11
            HTTPSamplerBase config = new HTTPNullSampler();
2
            HTTPSamplerBase config = new HTTPNullSampler();
12
            config.setProtocol("http");
3
            config.setProtocol("http");
13
            config.setMethod(HTTPSamplerBase.GET);
4
            config.setMethod(HTTPSamplerBase.GET);
14
            config.parseArguments("param1=");
5
            config.parseArguments("param1=");
15
            config.setPath("/index.html");
6
            config.setPath("/index.html");
16
            config.setDomain("www.apache.org");
7
            config.setDomain("www.apache.org");
17
            assertEquals("http://www.apache.org/index.html?param1=", config.getUrl().toString());
8
            assertEquals("http://www.apache.org/index.html?param1=", config.getUrl().toString());
18
        }
9
        }
19
        public void testMakingUrl9() throws Exception {
10
        public void testMakingUrl9() throws Exception {
20
            HTTPSamplerBase config = new HTTPNullSampler();
11
            HTTPSamplerBase config = new HTTPNullSampler();
21
            config.setProtocol("http");
12
            config.setProtocol("http");
22
            config.setMethod(HTTPSamplerBase.GET);
13
            config.setMethod(HTTPSamplerBase.GET);
23
            config.parseArguments("param1");
14
            config.parseArguments("param1");
24
            config.setPath("/index.html");
15
            config.setPath("/index.html");
25
            config.setDomain("www.apache.org");
16
            config.setDomain("www.apache.org");
26
            assertEquals("http://www.apache.org/index.html?param1", config.getUrl().toString());
17
            assertEquals("http://www.apache.org/index.html?param1", config.getUrl().toString());
27
        
18
        }
19
        public void testMakingUrl10() throws Exception {
20
            HTTPSamplerBase config = new HTTPNullSampler();
21
            config.setProtocol("http");
22
            config.setMethod(HTTPSamplerBase.GET);
23
            config.parseArguments("");
24
            config.setPath("/index.html");
25
            config.setDomain("www.apache.org");
26
            assertEquals("http://www.apache.org/index.html", config.getUrl().toString());
27
        
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0