Skip to content
Permalink
Browse files

[JENKINS-22673] added test for nested multi-module site building

  • Loading branch information...
mst committed Apr 18, 2014
1 parent 64d546e commit 2e719ab36d416e47791b6b53c69195cfbe4b4b8f
@@ -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;
@@ -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.
*/
Binary file not shown.

0 comments on commit 2e719ab

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