Skip to content

Commit

Permalink
No intention of continuing to support the use case described in testC…
Browse files Browse the repository at this point in the history
…lassDirectoryOnClassLoaderSystemGroovy.
  • Loading branch information
jglick committed Nov 23, 2016
1 parent c549d92 commit 17854f2
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/test/java/hudson/plugins/groovy/ClassPathTest.java
Expand Up @@ -9,7 +9,6 @@
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript;
import org.junit.Ignore;

import org.junit.Rule;
import org.junit.Test;
Expand Down Expand Up @@ -41,16 +40,6 @@ public void testWildcartOnClassPath() throws Exception {
assertTrue(containsString(p.scheduleBuild2(0).get().getLog(100), testJar));
}

@Ignore("TODO not supported this way")
@Test
public void testClassDirectoryOnClassLoaderSystemGroovy() throws Exception {
final ScriptSource script = new StringScriptSource(new SecureGroovyScript("App.main()", true, null));
SystemGroovy g = new SystemGroovy(script,"", "file://" + this.getClass().getResource("/classes").getPath() + "/");
FreeStyleProject p = j.createFreeStyleProject();
p.getBuildersList().add(g);
assertEquals(Result.SUCCESS, p.scheduleBuild2(0).get(10,TimeUnit.SECONDS).getResult());
}

@Issue("JENKINS-29577")
@Test
public void testClassPathAndProperties() throws Exception {
Expand Down

0 comments on commit 17854f2

Please sign in to comment.