Clean up JUnit assertions (#5314)

This commit is contained in:
Basil Crow authored and GitHub committed 2021-03-02 08:17:27 +00:00
1 parent e4bbb27b9e
commit 9cf3f73abd
35 files changed
+82 -70

No files matched your search

+2 -1
View File
@@ -36,6 +36,7 @@ import jenkins.security.MasterToSlaveCallable;
import org.apache.commons.io.FileUtils;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
@@ -63,7 +64,7 @@ public class LauncherTest {
Thread.sleep(100);
long start = System.currentTimeMillis();
p.kill();
assertTrue(p.join()!=0);
assertNotEquals(0, p.join());
long end = System.currentTimeMillis();
long terminationTime = end - start;
assertTrue("Join did not finish promptly. The completion time (" + terminationTime + "ms) is longer than expected 15s", terminationTime < 15000);