Skip to content

Commit a795ebc

Browse files
committed
Fixed code style in CoreEnvironmentContributorTest.java
1 parent 4fc7f45 commit a795ebc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/src/test/java/jenkins/model/CoreEnvironmentContributorTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package jenkins.model;
22

3+
import static org.junit.jupiter.api.Assertions.assertNull;
34
import static org.mockito.Mockito.mock;
45
import static org.mockito.Mockito.mockStatic;
56
import static org.mockito.Mockito.times;
@@ -76,9 +77,9 @@ void buildEnvironmentForJobSkipsUrlsWhenRootUrlNull() throws Exception {
7677
EnvVars env = new EnvVars();
7778
instance.buildEnvironmentFor(job, env, listener);
7879

79-
assert env.get("JOB_URL") == null;
80-
assert env.get("JENKINS_URL") == null;
81-
assert env.get("HUDSON_URL") == null;
80+
assertNull(env.get("JOB_URL"));
81+
assertNull(env.get("JENKINS_URL"));
82+
assertNull(env.get("HUDSON_URL"));
8283
}
8384
}
8485
}

0 commit comments

Comments
 (0)