added one more convenience method

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13183 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-11-12 01:51:47 +00:00
1 parent c16b0e9121
commit 22b34f5d37
1 file changed
+5
@@ -23,6 +23,7 @@ import hudson.tasks.Mailer;
import hudson.Launcher.LocalLauncher;
import hudson.util.StreamTaskListener;
import hudson.util.ProcessTreeKiller;
import hudson.maven.MavenModuleSet;
import junit.framework.TestCase;
import org.jvnet.hudson.test.HudsonHomeLoader.CopyExisting;
import org.jvnet.hudson.test.recipes.Recipe;
@@ -221,6 +222,10 @@ public abstract class HudsonTestCase extends TestCase {
return (MatrixProject)hudson.createProject(MatrixProject.DESCRIPTOR,name);
}
protected MavenModuleSet createMavenProject(String name) throws IOException {
return (MavenModuleSet)hudson.createProject(MavenModuleSet.DESCRIPTOR,name);
}
/**
* Creates {@link LocalLauncher}. Useful for launching processes.
*/