Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit 7cfeaf3

Browse files
committed
[1950248] Update to HtmlUnit 2.1 and Java 1.5. Thanks to Agnes Ro for the patch.
1 parent 79addc1 commit 7cfeaf3

4 files changed

Lines changed: 180 additions & 247 deletions

File tree

jwebunit-core/src/main/java/net/sourceforge/jwebunit/util/TestContext.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class TestContext {
3030

3131
private String domain;
3232

33-
private List cookies;
33+
private List<javax.servlet.http.Cookie> cookies;
3434

3535
private boolean hasAuth = false;
3636

@@ -44,7 +44,7 @@ public class TestContext {
4444

4545
private String userAgent;
4646

47-
private Map requestHeaders = new HashMap();
47+
private Map<String, String> requestHeaders = new HashMap<String, String>();
4848

4949
private String proxyUser = null;
5050

@@ -195,7 +195,7 @@ public String getDomain() {
195195
/**
196196
* Return the cookies which have been added to the test context.
197197
*/
198-
public List getCookies() {
198+
public List<javax.servlet.http.Cookie> getCookies() {
199199
return cookies;
200200
}
201201

@@ -321,7 +321,7 @@ public void removeRequestHeader(final String name) {
321321
* @param name header name.
322322
* @param value header value.
323323
*/
324-
public Map getRequestHeaders() {
324+
public Map<String, String> getRequestHeaders() {
325325
return requestHeaders;
326326
}
327327

0 commit comments

Comments
 (0)