mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 20:42:21 +00:00
Exception tests modernized.
This commit is contained in:
1 parent
97d919c971
commit
d37a460c84
16 files changed
+91
-185
No files matched your search
@@ -82,7 +82,6 @@ import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertNull;
|
||||
import static org.junit.Assert.assertThrows;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.fail;
|
||||
import static org.junit.Assume.assumeFalse;
|
||||
import static org.junit.Assume.assumeTrue;
|
||||
import static org.mockito.Mockito.mock;
|
||||
@@ -566,12 +565,7 @@ public class FilePathTest {
|
||||
assertNull(d.validateAntFileMask("d1/d2/**/f.txt"));
|
||||
assertNull(d.validateAntFileMask("d1/d2/**/f.txt", 10));
|
||||
assertEquals(Messages.FilePath_validateAntFileMask_portionMatchButPreviousNotMatchAndSuggest("**/*.js", "**", "**/*.js"), d.validateAntFileMask("**/*.js", 1000));
|
||||
try {
|
||||
d.validateAntFileMask("**/*.js", 10);
|
||||
fail();
|
||||
} catch (InterruptedException x) {
|
||||
// good
|
||||
}
|
||||
assertThrows(InterruptedException.class, () -> d.validateAntFileMask("**/*.js", 10));
|
||||
}
|
||||
|
||||
@Issue("JENKINS-5253")
|
||||
|
||||
Reference in new issue
Block a user