Skip to content

Commit

Permalink
SerializableSecureGroovyScriptTest must use JenkinsRule
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Oct 30, 2024
1 parent 8cf9c29 commit 275e05c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@
import static org.junit.jupiter.api.Assertions.assertEquals;

import org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;

public class SerializableSecureGroovyScriptTest {

@Rule
public JenkinsRule r = new JenkinsRule();

@Test
public void testRehydrate() {
SerializableSecureGroovyScript nullCheck = new SerializableSecureGroovyScript(null);
Expand Down

0 comments on commit 275e05c

Please sign in to comment.