diff --git a/src/test/java/org/jenkins/plugins/lockableresources/util/SerializableSecureGroovyScriptTest.java b/src/test/java/org/jenkins/plugins/lockableresources/util/SerializableSecureGroovyScriptTest.java index 3b1c4500e..91f6b592b 100644 --- a/src/test/java/org/jenkins/plugins/lockableresources/util/SerializableSecureGroovyScriptTest.java +++ b/src/test/java/org/jenkins/plugins/lockableresources/util/SerializableSecureGroovyScriptTest.java @@ -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);