Access static method via class reference rather than instance reference
@@ -385,7 +385,7 @@ public class JenkinsTest {
}
public HttpResponse doDynamic() {
- assertEquals("anonymous", Jenkins.get().getAuthentication2().getName());
+ assertEquals("anonymous", Jenkins.getAuthentication2().getName());
count++;
return HttpResponses.html("OK");
}
