Skip to content

Commit b1833c1

Browse files
Fix references to RealJenkinsRule.Endpoint (#9)
1 parent 407c973 commit b1833c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/io/jenkins/plugins/jakarta_xml_bind_api/JAXBContextTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import org.junit.jupiter.api.Test;
1717
import org.junit.jupiter.api.extension.RegisterExtension;
1818
import org.jvnet.hudson.test.JenkinsRule;
19-
import org.jvnet.hudson.test.RealJenkinsRule;
2019
import org.jvnet.hudson.test.junit.jupiter.RealJenkinsExtension;
2120

2221
class JAXBContextTest {
@@ -34,7 +33,7 @@ private static void _smokes(JenkinsRule r) throws Throwable {
3433
book.setId(1L);
3534
book.setName("Guide to JAXB");
3635
JAXBContext context;
37-
try (SetContextClassLoader sccl = new SetContextClassLoader(RealJenkinsRule.Endpoint.class)) {
36+
try (SetContextClassLoader sccl = new SetContextClassLoader(r.getPluginManager().uberClassLoader)) {
3837
context = JAXBContext.newInstance(Book.class);
3938
}
4039
ByteArrayOutputStream baos = new ByteArrayOutputStream();

0 commit comments

Comments
 (0)