1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 package org.apache.commons.httpclient;
32
33
34 /***
35 * This suite of tests depends upon the httpclienttest webapp,
36 * which is available in the httpclient/src/test-webapp
37 * directory in the CVS tree.
38 * <p>
39 * The webapp should be deployed in the context "httpclienttest"
40 * on a servlet engine running on port 8080 on the localhost
41 * (name localhost).
42 * <p>
43 * You can change the assumed port by setting the
44 * "httpclient.test.localPort" property.
45 * You can change the assumed host by setting the
46 * "httpclient.test.localHost" property. A DNS name is preferred over
47 * an IP address here.
48 * You can change the assumed context by setting the
49 * "httpclient.test.webappContext" property.
50 *
51 * @author Rodney Waldhoff
52 * @version $Id: TestWebappBase.java,v 1.6.2.1 2004/02/22 18:21:16 olegk Exp $
53 */
54 public abstract class TestWebappBase extends TestLocalHostBase {
55
56 private String context = System.getProperty("httpclient.test.webappContext","httpclienttest");
57
58 public TestWebappBase(String testName) {
59 super(testName);
60 }
61
62 public String getWebappContext() {
63 return context;
64 }
65
66 }
67