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

Commit 81a93e7

Browse files
jglickcentic9
authored andcommitted
Source compatibility with new cores using Jakarta Servlet
1 parent cc85322 commit 81a93e7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/test/java/hudson/plugins/jacococoveragecolumn/BranchCoverageColumnTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import static org.junit.Assert.assertEquals;
2525
import static org.junit.Assert.assertNotNull;
26+
import org.kohsuke.stapler.StaplerRequest;
2627

2728
public class BranchCoverageColumnTest {
2829

@@ -69,7 +70,7 @@ protected synchronized void saveNextBuildNumber() {
6970
@Test
7071
public void testDescriptor() throws FormException {
7172
assertNotNull(sut.getDescriptor());
72-
assertNotNull(sut.getDescriptor().newInstance(null, JSONObject.fromObject("{\"key\":\"value\"}")));
73+
assertNotNull(sut.getDescriptor().newInstance((StaplerRequest) null, JSONObject.fromObject("{\"key\":\"value\"}")));
7374
assertNotNull(sut.getDescriptor().getDisplayName());
7475
}
7576

src/test/java/hudson/plugins/jacococoveragecolumn/JaCoCoColumnTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.util.SortedMap;
2424

2525
import static org.junit.Assert.*;
26+
import org.kohsuke.stapler.StaplerRequest;
2627

2728
public class JaCoCoColumnTest {
2829
private JaCoCoColumn jaCoCoColumn;
@@ -71,7 +72,7 @@ protected synchronized void saveNextBuildNumber() {
7172
public void testDescriptor() throws FormException {
7273
assertNotNull(jaCoCoColumn.getDescriptor());
7374
assertNotNull(
74-
jaCoCoColumn.getDescriptor().newInstance(null, JSONObject.fromObject("{\"key\":\"value\"}")));
75+
jaCoCoColumn.getDescriptor().newInstance((StaplerRequest) null, JSONObject.fromObject("{\"key\":\"value\"}")));
7576
assertNotNull(jaCoCoColumn.getDescriptor().getDisplayName());
7677
}
7778

0 commit comments

Comments
 (0)