Hide delete link from /computer/(master)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14267 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-01-09 06:11:46 +00:00
1 parent b96b5d449f
commit d0213f18e5
3 files changed
+53 -1

No files matched your search

@@ -586,7 +586,14 @@ public abstract class HudsonTestCase extends TestCase {
}
public Page goTo(String relative, String expectedContentType) throws IOException, SAXException {
return super.getPage("http://localhost:"+localPort+contextPath+relative);
return super.getPage(getContextPath() +relative);
}
/**
* Returns the URL of the webapp top page.
*/
public String getContextPath() {
return "http://localhost:"+localPort+contextPath;
}
}