Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Upgrade HtmlUnit from 2.x to 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored and centic9 committed Jun 7, 2023
1 parent 6e0f6e4 commit 101ff30
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ THE SOFTWARE.
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.60</version>
<version>4.66</version>
<relativePath />
</parent>

Expand Down
38 changes: 19 additions & 19 deletions src/test/java/hudson/plugins/jacoco/JacocoConfigSubmitTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void testIncludeIsSet() throws Exception {
HtmlForm f = p.getFormByName("config");
f.getInputByName("hudson-plugins-jacoco-JacocoPublisher").setChecked(true);
f.getInputByName("jacoco.includes").setValueAttribute("***");
f.getInputByName("jacoco.includes").setValue("***");
submit(f);
JacocoPublisher publisher = (JacocoPublisher) fp.getPublisher(JacocoPublisher.DESCRIPTOR);
Expand All @@ -54,12 +54,12 @@ public void testHealthReportDefaultMaxValue() throws Exception {
HtmlForm f = p.getFormByName("config");
f.getInputByName("hudson-plugins-jacoco-JacocoPublisher").setChecked(true);
f.getInputByName("jacocoHealthReports.maxClass").setValueAttribute("");
f.getInputByName("jacocoHealthReports.maxMethod").setValueAttribute("");
f.getInputByName("jacocoHealthReports.maxLine").setValueAttribute("");
f.getInputByName("jacocoHealthReports.maxBranch").setValueAttribute("");
f.getInputByName("jacocoHealthReports.maxInstruction").setValueAttribute("");
f.getInputByName("jacocoHealthReports.maxComplexity").setValueAttribute("");
f.getInputByName("jacocoHealthReports.maxClass").setValue("");
f.getInputByName("jacocoHealthReports.maxMethod").setValue("");
f.getInputByName("jacocoHealthReports.maxLine").setValue("");
f.getInputByName("jacocoHealthReports.maxBranch").setValue("");
f.getInputByName("jacocoHealthReports.maxInstruction").setValue("");
f.getInputByName("jacocoHealthReports.maxComplexity").setValue("");
submit(f);
JacocoPublisher publisher = (JacocoPublisher) fp.getPublisher(JacocoPublisher.DESCRIPTOR);
Expand All @@ -83,12 +83,12 @@ public void testHealthReportMaxValue() throws Exception {
HtmlForm f = p.getFormByName("config");
f.getInputByName("hudson-plugins-jacoco-JacocoPublisher").setChecked(true);
f.getInputByName("jacocoHealthReports.maxClass").setValueAttribute("8");
f.getInputByName("jacocoHealthReports.maxMethod").setValueAttribute("9");
f.getInputByName("jacocoHealthReports.maxLine").setValueAttribute("10");
f.getInputByName("jacocoHealthReports.maxBranch").setValueAttribute("11");
f.getInputByName("jacocoHealthReports.maxInstruction").setValueAttribute("12");
f.getInputByName("jacocoHealthReports.maxComplexity").setValueAttribute("13");
f.getInputByName("jacocoHealthReports.maxClass").setValue("8");
f.getInputByName("jacocoHealthReports.maxMethod").setValue("9");
f.getInputByName("jacocoHealthReports.maxLine").setValue("10");
f.getInputByName("jacocoHealthReports.maxBranch").setValue("11");
f.getInputByName("jacocoHealthReports.maxInstruction").setValue("12");
f.getInputByName("jacocoHealthReports.maxComplexity").setValue("13");
submit(f);
JacocoPublisher publisher = (JacocoPublisher) fp.getPublisher(JacocoPublisher.DESCRIPTOR);
Expand All @@ -112,12 +112,12 @@ public void testHealthReportMinValue() throws Exception {
HtmlForm f = p.getFormByName("config");
f.getInputByName("hudson-plugins-jacoco-JacocoPublisher").setChecked(true);
f.getInputByName("jacocoHealthReports.minClass").setValueAttribute("1");
f.getInputByName("jacocoHealthReports.minMethod").setValueAttribute("2");
f.getInputByName("jacocoHealthReports.minLine").setValueAttribute("3");
f.getInputByName("jacocoHealthReports.minBranch").setValueAttribute("11");
f.getInputByName("jacocoHealthReports.minInstruction").setValueAttribute("12");
f.getInputByName("jacocoHealthReports.minComplexity").setValueAttribute("13");
f.getInputByName("jacocoHealthReports.minClass").setValue("1");
f.getInputByName("jacocoHealthReports.minMethod").setValue("2");
f.getInputByName("jacocoHealthReports.minLine").setValue("3");
f.getInputByName("jacocoHealthReports.minBranch").setValue("11");
f.getInputByName("jacocoHealthReports.minInstruction").setValue("12");
f.getInputByName("jacocoHealthReports.minComplexity").setValue("13");
submit(f);
JacocoPublisher publisher = (JacocoPublisher) fp.getPublisher(JacocoPublisher.DESCRIPTOR);
Expand Down

0 comments on commit 101ff30

Please sign in to comment.