Skip to content
Permalink
Browse files

Merge pull request #41 from jglick/IllegalAccessError-JENKINS-22252

[JENKINS-22252] Reproduced problem in test
  • Loading branch information...
jglick committed Oct 2, 2015
2 parents 23d6da2 + cf34c9c commit aac742512f570755f3e86df107214b4b1502e10f
Showing with 18 additions and 0 deletions.
  1. +18 −0 src/test/java/plugins/MavenPluginTest.java
@@ -49,7 +49,9 @@
import static org.hamcrest.CoreMatchers.*; import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.*; import static org.hamcrest.MatcherAssert.*;
import static org.jenkinsci.test.acceptance.Matchers.*; import static org.jenkinsci.test.acceptance.Matchers.*;
import org.jenkinsci.test.acceptance.junit.WithPlugins;
import static org.jenkinsci.test.acceptance.plugins.maven.MavenInstallation.*; import static org.jenkinsci.test.acceptance.plugins.maven.MavenInstallation.*;
import org.jenkinsci.test.acceptance.plugins.tasks.TasksMavenSettings;


public class MavenPluginTest extends AbstractJUnitTest { public class MavenPluginTest extends AbstractJUnitTest {


@@ -246,4 +248,20 @@ private void assertHasModule(MavenModuleSet job, String name) {
find(by.xpath("//a[@href='%s/']", name)).click(); find(by.xpath("//a[@href='%s/']", name)).click();
assertThat(driver.getCurrentUrl(), equalTo(build.module(name).url.toExternalForm())); assertThat(driver.getCurrentUrl(), equalTo(build.module(name).url.toExternalForm()));
} }

@Issue("JENKINS-22252")
@WithPlugins({"maven-plugin@2.12", "tasks"})
@Test
public void useWithTasks() throws InterruptedException {
MavenInstallation.installMaven(jenkins, "Maven 3.2.x", "3.2.1");
MavenModuleSet job = jenkins.jobs.create(MavenModuleSet.class);
job.configure();
job.copyDir(resource("/maven_plugin/multimodule/"));
job.goals.set("package");
job.addBuildSettings(TasksMavenSettings.class);
job.save();
Build build = job.startBuild().shouldSucceed();
assertThat(build.getConsole(), not(containsString("IllegalAccessError")));
}

} }

0 comments on commit aac7425

Please sign in to comment.
You can’t perform that action at this time.