Skip to content

Commit

Permalink
Upgrade HtmlUnit from 2.x to 3.x (#237)
Browse files Browse the repository at this point in the history
* Upgrade HtmlUnit from 2.x to 3.x

* Update pom.xml

* Update pom.xml

* Update pom.xml

---------

Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 6, 2023
1 parent bb9cfaa commit 8b8a126
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.64</version>
<version>4.66</version>
<relativePath />
</parent>

Expand All @@ -22,7 +22,7 @@
</licenses>
<properties>
<changelist>999999-SNAPSHOT</changelist>
<jenkins.version>2.361.4</jenkins.version>
<jenkins.version>2.387.3</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<useBeta>true</useBeta>
</properties>
Expand All @@ -31,8 +31,8 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.361.x</artifactId>
<version>2102.v854b_fec19c92</version>
<artifactId>bom-2.387.x</artifactId>
<version>2143.ve4c3c9ec790a</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand Down
12 changes: 6 additions & 6 deletions src/test/java/hudson/tasks/MailerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
*/
package hudson.tasks;

import com.gargoylesoftware.htmlunit.html.HtmlForm;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import org.htmlunit.html.HtmlForm;
import org.htmlunit.html.HtmlPage;
import hudson.Functions;
import hudson.Launcher;
import hudson.model.*;
Expand Down Expand Up @@ -264,11 +264,11 @@ public void globalConfig() throws Exception {
HtmlPage cp = webClient.goTo("configure");
HtmlForm form = cp.getFormByName("config");

form.getInputByName("_.smtpHost").setValueAttribute("acme.com");
form.getInputByName("_.defaultSuffix").setValueAttribute("@acme.com");
form.getInputByName("_.smtpHost").setValue("acme.com");
form.getInputByName("_.defaultSuffix").setValue("@acme.com");
form.getInputByName("_.authentication").setChecked(true);
form.getInputByName("_.username").setValueAttribute("user");
form.getInputByName("_.password").setValueAttribute("pass");
form.getInputByName("_.username").setValue("user");
form.getInputByName("_.password").setValue("pass");

rule.submit(form);

Expand Down

0 comments on commit 8b8a126

Please sign in to comment.