* Revive support for `URLClassLoader`
* [JENKINS-66563] add a supported API for a plugin to insert jars into its classpath
Required for BouncyCastle plugin so it does not try and expose its
classes when running in a JVM in FIPS mode, but can be other use cases
as yet unknown.
* [JENKINS-66563] add test case for new functionality
* [JENKINS-66563] and @since javadoc
* [JENKINS-66563] correct indent for new test
* mark the API Beta and document do not do this
Feedback from Jesse was we should be clearer that you probably should
not be using this interface and that there are other approaches that
should be used first.
To that end add some extra Javadoc and mark the API as Beta
* [JENKINS-66563] fix javadoc errors
* Fix typo
Co-authored-by: Devin Nusbaum <dwnusbaum@users.noreply.github.com>
Co-authored-by: Basil Crow <me@basilcrow.com>
Co-authored-by: Tim Jacomb <timjacomb1+github@gmail.com>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
Co-authored-by: Devin Nusbaum <dwnusbaum@users.noreply.github.com>
* Prevent Junit 4 tests from being skipped due to jupiter engine
@jglick suggested before when this happened we should have a check but I
never implemented it.
now it has happened again lets add the checj to make sure tests do not
get skipped withouth anyone realising because we accidently pull in
jupiter-engine.
* Update core/src/test/java/jenkins/Junit4TestsRanTest.java
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
* test case needs to be public!
* the missing tests where from the test package
The tests not being executied due to #5703 where in the test package, so
add a test and check there too.
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
* Remove usages of deprecated (in Java 9 and above) `Class#newInstance`
* Improve catching of InvocationTargetException
* Use AssertionError where appropriate
* [JENKINS-56934] fix the 'new view' link to correctly work with folders
* [JENKINS-56934] check permission on the correct item
* [JENKINS-56934] update and simplify the test
* [JENKINS-56934] check the owner is modifiable and refactor
* [JENKINS-56934] correct unit test, and add new test for non modifiable owner