mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 20:42:21 +00:00
[JENKINS-57678] - Change getInstance() (deprecated) to get() (#4042)
* Change getInstance() (deprecated) to get() * Reverting modifications according review * Changing for use the variable
This commit is contained in:
1 parent
fa0ba22dec
commit
0e62b68012
238 files changed
+618
-625
No files matched your search
@@ -266,7 +266,7 @@ public class FunctionsTest {
|
||||
private Jenkins createMockJenkins() {
|
||||
mockStatic(Jenkins.class);
|
||||
Jenkins j = mock(Jenkins.class);
|
||||
when(Jenkins.getInstance()).thenReturn(j);
|
||||
when(Jenkins.get()).thenReturn(j);
|
||||
return j;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user