Move hudson.model.Jenkins to be jenkins.model.Jenkins - part II

Just import changes, from hudson.model.Jenkins -> jenkins.model.Jenkins,
and Javadoc comments.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
This commit is contained in:
Nigel Magnay committed 2011-05-29 11:06:28 +01:00
1 parent cd78a8ee57
commit 5679d019ec
311 files changed
+386 -284

No files matched your search

@@ -116,6 +116,8 @@ import java.util.logging.Logger;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import jenkins.model.Jenkins;
import jenkins.model.JenkinsAdaptor;
import junit.framework.TestCase;
import net.sf.json.JSONObject;
import net.sourceforge.htmlunit.corejs.javascript.Context;
@@ -394,7 +396,7 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
}
/**
* Creates a new instance of {@link hudson.model.Jenkins}. If the derived class wants to create it in a different way,
* Creates a new instance of {@link jenkins.model.Jenkins}. If the derived class wants to create it in a different way,
* you can override it.
*/
protected Hudson newHudson() throws Exception {
@@ -1436,7 +1438,7 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
* <p>
* This method allows you to do just that. It is useful for testing some methods that
* require {@link StaplerRequest} and {@link StaplerResponse}, or getting the credential
* of the current user (via {@link hudson.model.Jenkins#getAuthentication()}, and so on.
* of the current user (via {@link jenkins.model.Jenkins#getAuthentication()}, and so on.
*
* @param c
* The closure to be executed on the server.
@@ -1562,7 +1564,7 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
* <p>
* This method allows you to do just that. It is useful for testing some methods that
* require {@link StaplerRequest} and {@link StaplerResponse}, or getting the credential
* of the current user (via {@link hudson.model.Jenkins#getAuthentication()}, and so on.
* of the current user (via {@link jenkins.model.Jenkins#getAuthentication()}, and so on.
*
* @param c
* The closure to be executed on the server.
@@ -32,7 +32,7 @@ import javax.servlet.ServletContextListener;
* Kills off {@link ServletContextListener}s loaded from web.xml.
*
* <p>
* This is so that the harness can create the {@link hudson.model.Jenkins} object.
* This is so that the harness can create the {@link jenkins.model.Jenkins} object.
* with the home directory of our choice.
*
* @author Kohsuke Kawaguchi
@@ -60,7 +60,7 @@ public class TestEnvironment {
* the wrong test environment depending on when it's created.
*
* <p>
* Since the rest of Hudson still relies on static {@link hudson.model.Jenkins#theInstance}, changing this
* Since the rest of Hudson still relies on static {@link jenkins.model.Jenkins#theInstance}, changing this
* to a static field for now shouldn't cause any problem.
*/
private static TestEnvironment CURRENT;
@@ -26,7 +26,7 @@ package org.jvnet.hudson.test;
import hudson.Extension;
import hudson.ExtensionComponent;
import hudson.ExtensionFinder;
import hudson.model.Jenkins;
import jenkins.model.Jenkins;
import net.java.sezpoz.Index;
import net.java.sezpoz.IndexItem;
@@ -67,7 +67,7 @@ public @interface Recipe {
public void setup(HudsonTestCase testCase, T recipe) throws Exception {}
/**
* Called right before {@link hudson.model.Jenkins#Hudson(File, ServletContext)} is invoked
* Called right before {@link jenkins.model.Jenkins#Hudson(File, ServletContext)} is invoked
* to decorate the hudson home directory.
*/
public void decorateHome(HudsonTestCase testCase, File home) throws Exception {}