File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed
src/test/java/io/jenkins/plugins/safebatch Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 23
23
*/
24
24
package io .jenkins .plugins .safebatch ;
25
25
26
- import static org .junit .Assert .fail ;
27
- import static org .junit .Assume .assumeTrue ;
26
+ import static org .junit .jupiter . api . Assertions .fail ;
27
+ import static org .junit .jupiter . api . Assumptions .assumeTrue ;
28
28
29
29
import hudson .Functions ;
30
30
import hudson .model .Build ;
39
39
import hudson .tasks .BatchFile ;
40
40
import io .jenkins .plugins .environment_filter_utils .matchers .run .ExactJobFullNameRunMatcher ;
41
41
import jenkins .tasks .filters .EnvVarsFilterGlobalConfiguration ;
42
- import org .junit .Rule ;
43
- import org .junit .Test ;
42
+ import org .junit .jupiter . api . BeforeEach ;
43
+ import org .junit .jupiter . api . Test ;
44
44
import org .jvnet .hudson .test .JenkinsRule ;
45
+ import org .jvnet .hudson .test .junit .jupiter .WithJenkins ;
45
46
46
- public class BatchSanitizerGlobalRuleTest {
47
+ @ WithJenkins
48
+ class BatchSanitizerGlobalRuleTest {
47
49
48
- @ Rule
49
- public JenkinsRule j = new JenkinsRule ();
50
+ private JenkinsRule j ;
51
+
52
+ @ BeforeEach
53
+ void setUp (JenkinsRule rule ) {
54
+ j = rule ;
55
+ }
50
56
51
57
@ Test
52
- public void globalRule_canBe_ignoreForGivenJobs () throws Exception {
58
+ void globalRule_canBe_ignoreForGivenJobs () throws Exception {
53
59
assumeTrue (Functions .isWindows ());
54
60
55
61
EnvVarsFilterGlobalConfiguration .getAllActivatedGlobalRules ().clear ();
You can’t perform that action at this time.
0 commit comments