Skip to content

Commit

Permalink
Merge pull request #65 from timja-bot/htmlunit-2.x-to-3.x
Browse files Browse the repository at this point in the history
Upgrade HtmlUnit from 2.x to 3.x
  • Loading branch information
jglick authored Jun 10, 2023
2 parents 62eb612 + 64a234b commit d32dc00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.61</version>
<version>4.66</version>
<relativePath/>
</parent>
<artifactId>jdk-tool</artifactId>
Expand Down
10 changes: 5 additions & 5 deletions src/test/java/hudson/tools/JDKInstallerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import com.gargoylesoftware.htmlunit.html.HtmlForm;
import com.gargoylesoftware.htmlunit.html.HtmlFormUtil;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import org.htmlunit.html.HtmlForm;
import org.htmlunit.html.HtmlFormUtil;
import org.htmlunit.html.HtmlPage;
import hudson.tools.JDKInstaller.DescriptorImpl;

import java.io.InputStream;
Expand Down Expand Up @@ -66,8 +66,8 @@ public void setUp() throws Exception {
public void enterCredential() throws Exception {
HtmlPage p = j.createWebClient().goTo("descriptorByName/hudson.tools.JDKInstaller/enterCredential");
HtmlForm form = p.getFormByName("postCredential");
form.getInputByName("username").setValueAttribute("foo");
form.getInputByName("password").setValueAttribute("bar");
form.getInputByName("username").setValue("foo");
form.getInputByName("password").setValue("bar");
HtmlFormUtil.submit(form, null);

DescriptorImpl d = j.jenkins.getDescriptorByType(DescriptorImpl.class);
Expand Down

0 comments on commit d32dc00

Please sign in to comment.