Skip to content

Commit 20d9c8c

Browse files
Update reference to Endpoint
1 parent 0e0d0de commit 20d9c8c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/src/main/java/jenkins/util/SetContextClassLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* unclear, {@link #SetContextClassLoader(ClassLoader)} can be used as a fallback with {@link
4242
* PluginManager.UberClassLoader} as the argument, though this is not as safe since lookups could be
4343
* ambiguous in case two unrelated plugins both bundle the same library. In functional tests, {@code
44-
* RealJenkinsRule.Endpoint} can be used to reference a class loader that has access to the plugins
44+
* RealJenkinsFixture.Endpoint} can be used to reference a class loader that has access to the plugins
4545
* defined in the test scenario.
4646
*
4747
* <p>See <a

test/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ THE SOFTWARE.
192192
<dependency>
193193
<groupId>org.jenkins-ci.main</groupId>
194194
<artifactId>jenkins-test-harness</artifactId>
195-
<version>2548.v12d3cc4591c0</version>
195+
<version>2549.va_d3707a_ff237</version>
196196
<scope>test</scope>
197197
<exclusions>
198198
<exclusion>

test/src/test/java/jenkins/util/SetContextClassLoaderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import org.junit.jupiter.api.Test;
77
import org.junit.jupiter.api.extension.RegisterExtension;
88
import org.jvnet.hudson.test.JenkinsRule;
9-
import org.jvnet.hudson.test.RealJenkinsRule;
9+
import org.jvnet.hudson.test.fixtures.RealJenkinsFixture;
1010
import org.jvnet.hudson.test.junit.jupiter.RealJenkinsExtension;
1111

1212
class SetContextClassLoaderTest {
@@ -20,7 +20,7 @@ void positive() throws Throwable {
2020
}
2121

2222
private static void _positive(JenkinsRule r) throws ClassNotFoundException {
23-
try (SetContextClassLoader sccl = new SetContextClassLoader(RealJenkinsRule.Endpoint.class)) {
23+
try (SetContextClassLoader sccl = new SetContextClassLoader(RealJenkinsFixture.Endpoint.class)) {
2424
assertEquals("hudson.tasks.Mailer$UserProperty", getUserPropertyClass().getName());
2525
}
2626
}

0 commit comments

Comments
 (0)