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 |
|