Skip to content

Commit

Permalink
SerializableSecureGroovyScriptTest must use JenkinsRule (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick authored Oct 31, 2024
1 parent 8cf9c29 commit a2e1c7c
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 a2e1c7c

Please sign in to comment.