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

Commit c7346b0

Browse files
committed
Update to HtmlUnit 2.14
1 parent 2bd5aef commit c7346b0

3 files changed

Lines changed: 18 additions & 15 deletions

File tree

jwebunit-htmlunit-plugin/pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
</dependency>
1818
<dependency>
1919
<groupId>org.mockito</groupId>
20-
<artifactId>mockito-core</artifactId>
20+
<artifactId>mockito-core</artifactId>
2121
<scope>test</scope>
2222
</dependency>
2323
<dependency>
2424
<groupId>net.sourceforge.htmlunit</groupId>
2525
<artifactId>htmlunit</artifactId>
26-
<version>2.11</version>
26+
<version>2.14</version>
2727
<exclusions>
28-
<exclusion>
29-
<artifactId>commons-logging</artifactId>
30-
<groupId>commons-logging</groupId>
31-
</exclusion>
28+
<exclusion>
29+
<artifactId>commons-logging</artifactId>
30+
<groupId>commons-logging</groupId>
31+
</exclusion>
3232
</exclusions>
3333
</dependency>
3434
<dependency>

jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public class HtmlUnitTestingEngineImpl implements ITestingEngine {
169169
/**
170170
* The default browser version.
171171
*/
172-
private BrowserVersion defaultBrowserVersion = BrowserVersion.FIREFOX_3_6;
172+
private BrowserVersion defaultBrowserVersion = BrowserVersion.FIREFOX_24;
173173

174174
/**
175175
* Should we ignore failing status codes?
@@ -836,12 +836,12 @@ protected WebClient createWebClient() {
836836
* The user agent string is now provided by default to new test cases.
837837
* It can still be overridden if testContext.getUserAgent() is not
838838
* null (i.e. has been set manually.)
839-
*
839+
*
840840
* @author Jevon
841841
*/
842842
BrowserVersion bv;
843843
if (testContext.getUserAgent() != null) {
844-
bv = BrowserVersion.FIREFOX_3_6;
844+
bv = BrowserVersion.FIREFOX_24;
845845
bv.setUserAgent(testContext.getUserAgent());
846846
} else {
847847
bv = defaultBrowserVersion; // use default (which includes a full UserAgent string)
@@ -2381,7 +2381,7 @@ public void setExpectedJavaScriptPrompt(JavascriptPrompt[] prompts)
23812381

23822382
/*
23832383
* (non-Javadoc)
2384-
*
2384+
*
23852385
* @see net.sourceforge.jwebunit.api.ITestingEngine#getElementByXPath(java.lang.String)
23862386
*/
23872387
@Override
@@ -2395,7 +2395,7 @@ public IElement getElementByXPath(String xpath) {
23952395

23962396
/*
23972397
* (non-Javadoc)
2398-
*
2398+
*
23992399
* @see net.sourceforge.jwebunit.api.ITestingEngine#getElementByID(java.lang.String)
24002400
*/
24012401
@Override
@@ -2409,7 +2409,7 @@ public IElement getElementByID(String id) {
24092409

24102410
/*
24112411
* (non-Javadoc)
2412-
*
2412+
*
24132413
* @see net.sourceforge.jwebunit.api.ITestingEngine#getElementsByXPath(java.lang.String)
24142414
*/
24152415
@Override
@@ -2425,7 +2425,7 @@ public List<IElement> getElementsByXPath(String xpath) {
24252425

24262426
/*
24272427
* (non-Javadoc)
2428-
*
2428+
*
24292429
* @see net.sourceforge.jwebunit.api.ITestingEngine#getServerResponseCode()
24302430
*/
24312431
@Override
@@ -2453,7 +2453,7 @@ public void setIgnoreFailingStatusCodes(boolean ignore) {
24532453

24542454
/*
24552455
* (non-Javadoc)
2456-
*
2456+
*
24572457
* @see net.sourceforge.jwebunit.api.ITestingEngine#getHeader(java.lang.String)
24582458
*/
24592459
@Override
@@ -2463,7 +2463,7 @@ public String getHeader(String name) {
24632463

24642464
/*
24652465
* (non-Javadoc)
2466-
*
2466+
*
24672467
* @see net.sourceforge.jwebunit.api.ITestingEngine#getAllHeaders()
24682468
*/
24692469
@Override

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
</properties>
3232
<body>
3333
<release version="3.2" date="UNKNOW" description="">
34+
<action type="update" dev="henryju">
35+
Updated to HtmlUnit 2.14.
36+
</action>
3437
<action type="fix" dev="henryju" issue="3590252" due-to="Kenny MacLeod">
3538
Assert form is present before really calling setWorkingForm(String nameOrId, int index).
3639
</action>

0 commit comments

Comments
 (0)