set the root URL

This commit is contained in:
Kohsuke Kawaguchi committed 2011-12-23 19:59:09 -08:00
1 parent ee9e3ffe79
commit d5710650d7
1 file changed
+1
@@ -304,6 +304,7 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
hudson.servletContext.setAttribute("app",hudson);
hudson.servletContext.setAttribute("version","?");
WebAppMain.installExpressionFactory(new ServletContextEvent(hudson.servletContext));
Mailer.descriptor().setHudsonUrl(getURL().toExternalForm());
// set a default JDK to be the one that the harness is using.
hudson.getJDKs().add(new JDK("default",System.getProperty("java.home")));