[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:
Gustavo de Souza Bezerra authored and Oleg Nenashev committed 2019-06-27 17:24:45 +02:00
1 parent fa0ba22dec
commit 0e62b68012
238 files changed
+618 -625

No files matched your search

+1 -1
View File
@@ -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;
}