1 | void testMakingUrl4() throws Exception {↵ | | 1 | void testMakingUrl5() throws Exception {↵
|
2 | HTTPSamplerBase config = new HTTPNullSampler();↵ | | 2 | HTTPSamplerBase config = new HTTPNullSampler();↵
|
3 | config.setProtocol("http");↵ | | 3 | config.setProtocol("http");↵
|
4 | config.setMethod(HTTPSamplerBase.GET);↵ | | 4 | config.setMethod(HTTPSamplerBase.GET);↵
|
5 | config.addArgument("param1", "value1", "=");↵ | | 5 | config.addArgument("param1", "", "=");↵
|
6 | config.setPath("/index.html");↵ | | 6 | config.setPath("/index.html");↵
|
7 | config.setDomain("www.apache.org");↵ | | 7 | config.setDomain("www.apache.org");↵
|
8 | assertEquals("http://www.apache.org/index.html?param1=value1", config.getUrl().toString());↵ | | 8 | assertEquals("http://www.apache.org/index.html?param1=", config.getUrl().toString());↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public void testMakingUrl5() throws Exception {↵ | | 10 | public void testMakingUrl6() throws Exception {↵
|
11 | HTTPSamplerBase config = new HTTPNullSampler();↵ | | 11 | HTTPSamplerBase config = new HTTPNullSampler();↵
|
12 | config.setProtocol("http");↵ | | 12 | config.setProtocol("http");↵
|
13 | config.setMethod(HTTPSamplerBase.GET);↵ | | 13 | config.setMethod(HTTPSamplerBase.GET);↵
|
14 | config.addArgument("param1", "", "=");↵ | | 14 | config.addArgument("param1", "", "");↵
|
15 | config.setPath("/index.html");↵ | | 15 | config.setPath("/index.html");↵
|
16 | config.setDomain("www.apache.org");↵ | | 16 | config.setDomain("www.apache.org");↵
|
17 | assertEquals("http://www.apache.org/index.html?param1=", config.getUrl().toString());↵ | | 17 | assertEquals("http://www.apache.org/index.html?param1", config.getUrl().toString());↵
|
18 | | | 18 |
|