Skip to content

Commit

Permalink
[JENKINS-22673] added test for nested multi-module site building
Browse files Browse the repository at this point in the history
  • Loading branch information
mst committed Apr 18, 2014
1 parent 64d546e commit 2e719ab
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/hudson/maven/MavenModuleTest.java
Expand Up @@ -6,9 +6,9 @@
import static org.powermock.api.support.membermodification.MemberMatcher.constructor;
import static org.powermock.api.support.membermodification.MemberModifier.suppress;
import hudson.maven.MavenModuleSet.DescriptorImpl;
import hudson.model.AbstractProject;
import hudson.model.DependencyGraph;
import hudson.model.MockHelper;
import hudson.model.AbstractProject;

import java.io.IOException;
import java.util.Collection;
Expand Down
20 changes: 20 additions & 0 deletions src/test/java/hudson/maven/MavenProjectTest.java
Expand Up @@ -140,6 +140,26 @@ public void testMultiModuleSiteBuild() throws Exception {
wc.getPage(project, "site/core");
}

public void testNestedMultiModuleSiteBuild() throws Exception {
MavenModuleSet project = createProject("maven-nested-multimodule-site.zip");
project.setGoals("site");

try {
buildAndAssertSuccess(project);
} catch (InterruptedException x) {
return; // TODO as above
}

// this should succeed
HudsonTestCase.WebClient wc = new WebClient();
wc.getPage(project, "site");
wc.getPage(project, "site/core");
wc.getPage(project, "site/client");
wc.getPage(project, "site/client/nested1");
wc.getPage(project, "site/client/nested1/nested2");

}

/**
* Check if the the site goal will work when run from a slave.
*/
Expand Down
Binary file not shown.

0 comments on commit 2e719ab

Please sign in to comment.