-
Deprecated ClassesClassDescriptionuse
Jenkins.setQuietPeriod(java.lang.Integer)
UseGroovyJenkinsRule
instead.New code should useJenkinsRule
.New code should useJenkinsRule
.New code should useJenkinsSessionRule
.RestartableJenkinsRule
will evaluate your test method to collect all steps, then execute them in turn and restart Jenkins in between each step, after the test method has exited. That is probably not what you would expect from looking at sources, and it will not work naturally withAfter
etc. Tests needing to dynamically disable plugins, simulate crashes, etc. are better written usingRealJenkinsRule
.UseMockAuthorizationStrategy
plusMockFolder
instead.
-
Deprecated Annotation InterfacesAnnotation InterfaceDescriptionUsing a 2.x parent POM, Surefire will be configured to retry failing tests automatically. If the test fails consistently,
Ignore
it.Authentication modes are better defined in code usingJenkinsRule.createDummySecurityRealm()
andMockAuthorizationStrategy
.
-
Deprecated FieldsFieldDescriptionUse
HudsonTestCase.pluginManager
UseJenkinsRule.pluginManager
-
Deprecated MethodsMethodDescriptionRather use
CLICommandInvoker.asUser(java.lang.String)
.This method expects a full URL. This method is marked as deprecated to warn you that you probably should be usingHudsonTestCase.WebClient.goTo(String)
method, which accepts a relative path within the Hudson being tested. (IOW, if you really need to hit a website on the internet, there's nothing wrong with using this method.)secret is used by default when using newer versions of Remotingsecret is used by default when using newer versions of RemotingUseTemporaryFolder
instead.useJenkins.setQuietPeriod(java.lang.Integer)
This method expects a full URL. This method is marked as deprecated to warn you that you probably should be usingJenkinsRule.WebClient.goTo(String)
method, which accepts a relative path within the Hudson being tested. (IOW, if you really need to hit a website on the internet, there's nothing wrong with using this method.)No longer needed.
-
Deprecated ConstructorsConstructorDescription
RealJenkinsRule