1 | void testMakingUrl9() throws Exception {↵ | | 1 | void testMakingUrl7() 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.parseArguments("param1");↵ | | 5 | config.parseArguments("param1=value1");↵
|
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", config.getUrl().toString());↵ | | 8 | assertEquals("http://www.apache.org/index.html?param1=value1", config.getUrl().toString());↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public void testMakingUrl10() throws Exception {↵ | | 10 | public void testMakingUrl8() 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.parseArguments("");↵ | | 14 | config.parseArguments("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", config.getUrl().toString());↵ | | 17 | assertEquals("http://www.apache.org/index.html?param1=", config.getUrl().toString());↵
|
18 | | | 18 |
|