Skip to content

Commit

Permalink
Access static member via class reference rather than instance reference
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Sep 9, 2021
1 parent 2ce30b1 commit a775183
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -38,6 +38,7 @@
import org.junit.Rule;
import org.jvnet.hudson.test.BuildWatcher;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.JenkinsSessionRule;

import static org.hamcrest.MatcherAssert.assertThat;
Expand Down Expand Up @@ -77,7 +78,7 @@ public void smokes() throws Throwable {
SemaphoreStep.success("wait/1", null);
WorkflowRun b = r.jenkins.getItemByFullName("p", WorkflowJob.class).getBuildByNumber(1);
r.assertBuildStatus(Result.SUCCESS, r.waitForCompletion(b));
assertThat(r.getLog(b), stringContainsInOrder("got: first message second message", Functions.isWindows() ? "WS>rem" : "+ true"));
assertThat(JenkinsRule.getLog(b), stringContainsInOrder("got: first message second message", Functions.isWindows() ? "WS>rem" : "+ true"));

});
}
Expand Down

0 comments on commit a775183

Please sign in to comment.