JenkinsRule.@Deprecated public abstract class HudsonTestCase extends junit.framework.TestCase implements hudson.model.RootAction
| Modifier and Type | Class and Description |
|---|---|
static class |
HudsonTestCase.BreakException
Deprecated.
|
static class |
HudsonTestCase.TestBuildWrapper
Deprecated.
|
class |
HudsonTestCase.WebClient
Deprecated.
Extends
WebClient and provide convenience methods
for accessing Hudson. |
| Modifier and Type | Field and Description |
|---|---|
ComputerConnectorTester |
computerConnectorTester
Deprecated.
|
protected String |
contextPath
Deprecated.
Where in the
Server is Hudson deployed? |
protected TestEnvironment |
env
Deprecated.
|
protected File |
explodedWarDir
Deprecated.
The directory where a war file gets exploded.
|
protected HudsonHomeLoader |
homeLoader
Deprecated.
|
hudson.model.Hudson |
hudson
Deprecated.
Points to the same object as
jenkins does. |
jenkins.model.Jenkins |
jenkins
Deprecated.
|
protected JavaScriptDebugger |
jsDebugger
Deprecated.
JavaScript "debugger" that provides you information about the JavaScript call stack
and the current values of the local variables in those stack frame.
|
protected int |
localPort
Deprecated.
TCP/IP port that the server is listening on.
|
static org.eclipse.jetty.http.MimeTypes |
MIME_TYPES
Deprecated.
|
protected static List<hudson.tools.ToolProperty<?>> |
NO_PROPERTIES
Deprecated.
|
protected List<Recipe.Runner> |
recipes
Deprecated.
|
protected org.eclipse.jetty.server.Server |
server
Deprecated.
|
static int |
SLAVE_DEBUG_PORT
Deprecated.
Specify this to a TCP/IP port number to have slaves started with the debugger.
|
protected List<LenientRunnable> |
tearDowns
Deprecated.
Runnables to be invoked at tearDown(). |
int |
timeout
Deprecated.
Number of seconds until the test times out.
|
boolean |
useLocalPluginManager
Deprecated.
Use
pluginManager |
| Modifier | Constructor and Description |
|---|---|
protected |
HudsonTestCase()
Deprecated.
|
protected |
HudsonTestCase(String name)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertAllImageLoadSuccessfully(com.gargoylesoftware.htmlunit.html.HtmlPage p)
Deprecated.
Makes sure that all the images in the page loads successfully.
|
<R extends hudson.model.Run> |
assertBuildStatus(hudson.model.Result status,
R r)
Deprecated.
Asserts that the outcome of the build is a specific outcome.
|
<R extends hudson.model.Run> |
assertBuildStatusSuccess(Future<? extends R> r)
Deprecated.
|
<R extends hudson.model.Run> |
assertBuildStatusSuccess(R r)
Deprecated.
|
void |
assertEqualBeans(Object lhs,
Object rhs,
String properties)
Deprecated.
Asserts that two JavaBeans are equal as far as the given list of properties are concerned.
|
void |
assertEqualDataBoundBeans(List<?> lhs,
List<?> rhs)
Deprecated.
Makes sure that two collections are identical via
assertEqualDataBoundBeans(Object, Object) |
void |
assertEqualDataBoundBeans(Object lhs,
Object rhs)
Deprecated.
Works like
assertEqualBeans(Object, Object, String) but figure out the properties
via DataBoundConstructor |
void |
assertGoodStatus(com.gargoylesoftware.htmlunit.Page page)
Deprecated.
Assert that the specified page can be served with a "good" HTTP status,
eg, the page is not missing and can be served without a server error
|
void |
assertHelpExists(Class<? extends hudson.model.Describable> type,
String properties)
Deprecated.
Asserts that help files exist for the specified properties of the given instance.
|
void |
assertLogContains(String substring,
hudson.model.Run run)
Deprecated.
Asserts that the console output of the build contains the given substring.
|
void |
assertLogNotContains(String substring,
hudson.model.Run run)
Deprecated.
Asserts that the console output of the build does not contain the given substring.
|
void |
assertStringContains(String haystack,
String needle)
Deprecated.
|
void |
assertStringContains(String message,
String haystack,
String needle)
Deprecated.
|
void |
assertXPath(com.gargoylesoftware.htmlunit.html.DomNode page,
String xpath)
Deprecated.
Asserts that the XPath matches the contents of a DomNode page.
|
void |
assertXPath(com.gargoylesoftware.htmlunit.html.HtmlPage page,
String xpath)
Deprecated.
Asserts that the XPath matches.
|
void |
assertXPathResultsContainText(com.gargoylesoftware.htmlunit.html.DomNode page,
String xpath,
String needle)
Deprecated.
|
void |
assertXPathValue(com.gargoylesoftware.htmlunit.html.DomNode page,
String xpath,
String expectedValue)
Deprecated.
|
void |
assertXPathValueContains(com.gargoylesoftware.htmlunit.html.DomNode page,
String xpath,
String needle)
Deprecated.
|
hudson.model.FreeStyleBuild |
buildAndAssertSuccess(hudson.model.FreeStyleProject job)
Deprecated.
Avoids need for cumbersome
this.<J,R>buildAndAssertSuccess(...) type hints under JDK 7 javac (and supposedly also IntelliJ). |
<J extends hudson.model.AbstractProject<J,R>,R extends hudson.model.AbstractBuild<J,R>> |
buildAndAssertSuccess(J job)
Deprecated.
|
protected void |
configRoundtrip()
Deprecated.
Hits the Hudson system configuration and submits without any modification.
|
protected <B extends hudson.tasks.Builder> |
configRoundtrip(B before)
Deprecated.
Performs a configuration round-trip testing for a builder.
|
protected <C extends hudson.slaves.ComputerConnector> |
configRoundtrip(C before)
Deprecated.
|
protected <N extends hudson.model.Node> |
configRoundtrip(N node)
Deprecated.
|
protected <P extends hudson.model.Item> |
configRoundtrip(P job)
Deprecated.
|
protected <P extends hudson.model.Job> |
configRoundtrip(P job)
Deprecated.
Loads a configuration page and submits it without any modifications, to
perform a round-trip configuration test.
|
protected <P extends hudson.tasks.Publisher> |
configRoundtrip(P before)
Deprecated.
Performs a configuration round-trip testing for a publisher.
|
protected hudson.model.User |
configRoundtrip(hudson.model.User u)
Deprecated.
|
protected <V extends hudson.model.View> |
configRoundtrip(V view)
Deprecated.
|
protected void |
configureUpdateCenter()
Deprecated.
Configures the update center setting for the test.
|
protected org.eclipse.jetty.security.LoginService |
configureUserRealm()
Deprecated.
Configures a security realm for a test.
|
hudson.slaves.ComputerLauncher |
createComputerLauncher(hudson.EnvVars env)
Deprecated.
Creates a
ComputerLauncher for launching a slave locally. |
hudson.security.SecurityRealm |
createDummySecurityRealm()
Deprecated.
Creates a test
SecurityRealm that recognizes username==password as valid. |
protected hudson.model.FreeStyleProject |
createFreeStyleProject()
Deprecated.
|
protected hudson.model.FreeStyleProject |
createFreeStyleProject(String name)
Deprecated.
|
protected hudson.Launcher.LocalLauncher |
createLocalLauncher()
Deprecated.
Creates
Launcher.LocalLauncher. |
hudson.slaves.DumbSlave |
createOnlineSlave()
Deprecated.
Create a new slave on the local host and wait for it to come online
before returning.
|
hudson.slaves.DumbSlave |
createOnlineSlave(hudson.model.Label l)
Deprecated.
Create a new slave on the local host and wait for it to come online
before returning.
|
hudson.slaves.DumbSlave |
createOnlineSlave(hudson.model.Label l,
hudson.EnvVars env)
Deprecated.
Create a new slave on the local host and wait for it to come online
before returning
|
PretendSlave |
createPretendSlave(FakeLauncher faker)
Deprecated.
|
hudson.slaves.DumbSlave |
createSlave()
Deprecated.
|
hudson.slaves.DumbSlave |
createSlave(hudson.EnvVars env)
Deprecated.
|
hudson.slaves.DumbSlave |
createSlave(hudson.model.Label l)
Deprecated.
Creates and launches a new slave on the local host.
|
hudson.slaves.DumbSlave |
createSlave(hudson.model.Label l,
hudson.EnvVars env)
Deprecated.
|
hudson.slaves.DumbSlave |
createSlave(String labels,
hudson.EnvVars env)
Deprecated.
Creates a slave with certain additional environment variables
|
hudson.slaves.DumbSlave |
createSlave(String nodeName,
String labels,
hudson.EnvVars env)
Deprecated.
|
hudson.model.TaskListener |
createTaskListener()
Deprecated.
Creates a
TaskListener connected to stdout. |
File |
createTmpDir()
Deprecated.
Allocates a new temporary directory for the duration of this test.
|
protected String |
createUniqueProjectName()
Deprecated.
|
HudsonTestCase.WebClient |
createWebClient()
Deprecated.
This is to assist Groovy test clients who are incapable of instantiating the inner classes properly.
|
protected javax.servlet.ServletContext |
createWebServer()
Deprecated.
Prepares a webapp hosting environment to get
ServletContext implementation
that we need for testing. |
<V> V |
executeOnServer(Callable<V> c)
Deprecated.
Executes the given closure on the server, by the servlet request handling thread,
in the context of an HTTP request.
|
protected Constructor<?> |
findDataBoundConstructor(Class<?> c)
Deprecated.
|
protected com.gargoylesoftware.htmlunit.html.HtmlInput |
findPreviousInputElement(com.gargoylesoftware.htmlunit.html.HtmlElement current,
String name)
Deprecated.
|
protected <T extends hudson.model.Descriptor<?>> |
get(Class<T> d)
Deprecated.
Gets the descriptor instance of the current Hudson by its type.
|
protected com.gargoylesoftware.htmlunit.html.HtmlButton |
getButtonByCaption(com.gargoylesoftware.htmlunit.html.HtmlForm f,
String s)
Deprecated.
|
String |
getDisplayName()
Deprecated.
|
String |
getIconFileName()
Deprecated.
|
protected static String |
getLog(hudson.model.Run run)
Deprecated.
Get entire log file (this method is deprecated in hudson.model.Run,
but in tests it is OK to load entire log).
|
URL |
getURL()
Deprecated.
Returns the URL of the webapp top page.
|
String |
getUrlName()
Deprecated.
|
void |
interactiveBreak()
Deprecated.
Blocks until the ENTER key is hit.
|
boolean |
isGoodHttpStatus(int status)
Deprecated.
Determines whether the specified HTTP status code is generally "good"
|
protected boolean |
isSomethingHappening()
Deprecated.
Returns true if Hudson is building something or going to build something.
|
protected <T> T |
last(List<T> items)
Deprecated.
Returns the last item in the list.
|
protected hudson.model.Hudson |
newHudson()
Deprecated.
Creates a new instance of
Jenkins. |
protected void |
pause()
Deprecated.
Pauses the execution until ENTER is hit in the console.
|
protected void |
recipe()
Deprecated.
Called during the
setUp() to give a test case an opportunity to
control the test environment in which Hudson is run. |
protected void |
recipeLoadCurrentPlugin()
Deprecated.
If this test harness is launched for a Jenkins plugin, locate the target/test-classes/the.jpl
and add a recipe to install that to the new Jenkins.
|
void |
runBare()
Deprecated.
|
protected void |
runTest()
Deprecated.
|
protected com.gargoylesoftware.htmlunit.Page |
search(String q)
Deprecated.
Performs a search from the search box.
|
void |
setPluginManager(hudson.PluginManager pluginManager)
Deprecated.
Sets the
PluginManager to be used when creating a new Jenkins instance. |
protected void |
setQuietPeriod(int qp)
Deprecated.
|
protected void |
setUp()
Deprecated.
|
protected void |
setUpTimeout()
Deprecated.
|
com.gargoylesoftware.htmlunit.html.HtmlPage |
submit(com.gargoylesoftware.htmlunit.html.HtmlForm form)
Deprecated.
Submits the form.
|
com.gargoylesoftware.htmlunit.html.HtmlPage |
submit(com.gargoylesoftware.htmlunit.html.HtmlForm form,
String name)
Deprecated.
Submits the form by clicking the submit button of the given name.
|
protected void |
tearDown()
Deprecated.
|
protected void |
waitUntilNoActivity()
Deprecated.
Waits until Hudson finishes building everything, including those in the queue.
|
protected void |
waitUntilNoActivityUpTo(int timeout)
Deprecated.
Waits until Jenkins finishes building everything, including those builds in the queue, or fail the test
if the specified timeout milliseconds is exceeded.
|
HudsonTestCase |
with(HudsonHomeLoader homeLoader)
Deprecated.
|
HudsonTestCase |
withExistingHome(File source)
Deprecated.
|
HudsonTestCase |
withNewHome()
Deprecated.
|
HudsonTestCase |
withPresetData(String name)
Deprecated.
Declares that this test case expects to start with one of the preset data sets.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, setName, toStringpublic hudson.model.Hudson hudson
jenkins does.public jenkins.model.Jenkins jenkins
protected final TestEnvironment env
protected HudsonHomeLoader homeLoader
protected int localPort
protected org.eclipse.jetty.server.Server server
protected String contextPath
Server is Hudson deployed?
Just like ServletContext.getContextPath(), starts with '/' but doesn't end with '/'.
protected List<LenientRunnable> tearDowns
Runnables to be invoked at tearDown().protected List<Recipe.Runner> recipes
protected JavaScriptDebugger jsDebugger
Unlike Java debugger, which you as a human interfaces directly and interactively, this JavaScript debugger is to be interfaced by your program (or through the expression evaluation capability of your Java debugger.)
public boolean useLocalPluginManager
pluginManagerWithPlugin annotations, set to true.
This will cause a fresh PluginManager to be created for this test.
Leaving this to false enables the test harness to use a pre-loaded plugin manager,
which runs faster.public int timeout
public ComputerConnectorTester computerConnectorTester
protected File explodedWarDir
protected static final List<hudson.tools.ToolProperty<?>> NO_PROPERTIES
public static int SLAVE_DEBUG_PORT
public static final org.eclipse.jetty.http.MimeTypes MIME_TYPES
protected HudsonTestCase(String name)
protected HudsonTestCase()
public void runBare()
throws Throwable
runBare in class junit.framework.TestCaseThrowableprotected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionprotected void setUpTimeout()
protected void configureUpdateCenter()
throws Exception
Exceptionprotected void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionprotected void runTest()
throws Throwable
runTest in class junit.framework.TestCaseThrowablepublic String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getUrlName()
getUrlName in interface hudson.model.Actionprotected hudson.model.Hudson newHudson()
throws Exception
Jenkins. If the derived class wants to create it in a different way,
you can override it.Exceptionpublic void setPluginManager(hudson.PluginManager pluginManager)
PluginManager to be used when creating a new Jenkins instance.pluginManager - null to let Jenkins create a new instance of default plugin manager, like it normally does when running as a webapp outside the test.protected javax.servlet.ServletContext createWebServer()
throws Exception
ServletContext implementation
that we need for testing.Exceptionprotected org.eclipse.jetty.security.LoginService configureUserRealm()
protected hudson.model.FreeStyleProject createFreeStyleProject()
throws IOException
IOExceptionprotected hudson.model.FreeStyleProject createFreeStyleProject(String name) throws IOException
IOExceptionprotected String createUniqueProjectName()
protected hudson.Launcher.LocalLauncher createLocalLauncher()
Launcher.LocalLauncher. Useful for launching processes.public File createTmpDir() throws IOException
IOExceptionpublic hudson.slaves.DumbSlave createSlave()
throws Exception
Exceptionpublic hudson.slaves.DumbSlave createSlave(hudson.model.Label l)
throws Exception
Exceptionpublic hudson.security.SecurityRealm createDummySecurityRealm()
SecurityRealm that recognizes username==password as valid.public URL getURL() throws IOException
IOExceptionpublic hudson.slaves.DumbSlave createSlave(hudson.EnvVars env)
throws Exception
Exceptionpublic hudson.slaves.DumbSlave createSlave(hudson.model.Label l,
hudson.EnvVars env)
throws Exception
Exceptionpublic hudson.slaves.DumbSlave createSlave(String labels, hudson.EnvVars env) throws Exception
Exceptionpublic hudson.slaves.DumbSlave createSlave(String nodeName, String labels, hudson.EnvVars env) throws Exception
Exceptionpublic PretendSlave createPretendSlave(FakeLauncher faker) throws Exception
Exceptionpublic hudson.slaves.ComputerLauncher createComputerLauncher(hudson.EnvVars env)
throws URISyntaxException,
IOException
ComputerLauncher for launching a slave locally.env - Environment variables to add to the slave process. Can be null.URISyntaxExceptionIOExceptionpublic hudson.slaves.DumbSlave createOnlineSlave()
throws Exception
Exceptionpublic hudson.slaves.DumbSlave createOnlineSlave(hudson.model.Label l)
throws Exception
Exceptionpublic hudson.slaves.DumbSlave createOnlineSlave(hudson.model.Label l,
hudson.EnvVars env)
throws Exception
Exceptionpublic void interactiveBreak()
throws Exception
Exceptionprotected <T> T last(List<T> items)
protected void pause()
throws IOException
This is often very useful so that you can interact with Hudson from an browser, while developing a test case.
IOExceptionprotected com.gargoylesoftware.htmlunit.Page search(String q) throws Exception
Exceptionprotected void configRoundtrip()
throws Exception
Exceptionprotected <P extends hudson.model.Job> P configRoundtrip(P job)
throws Exception
See http://wiki.jenkins-ci.org/display/JENKINS/Unit+Test#UnitTest-Configurationroundtriptesting
Exceptionprotected <P extends hudson.model.Item> P configRoundtrip(P job)
throws Exception
Exceptionprotected <B extends hudson.tasks.Builder> B configRoundtrip(B before)
throws Exception
Exceptionprotected <P extends hudson.tasks.Publisher> P configRoundtrip(P before)
throws Exception
Exceptionprotected <C extends hudson.slaves.ComputerConnector> C configRoundtrip(C before)
throws Exception
Exceptionprotected hudson.model.User configRoundtrip(hudson.model.User u)
throws Exception
Exceptionprotected <N extends hudson.model.Node> N configRoundtrip(N node)
throws Exception
Exceptionprotected <V extends hudson.model.View> V configRoundtrip(V view)
throws Exception
Exceptionpublic <R extends hudson.model.Run> R assertBuildStatus(hudson.model.Result status,
R r)
throws Exception
Exceptionpublic boolean isGoodHttpStatus(int status)
public void assertGoodStatus(com.gargoylesoftware.htmlunit.Page page)
page - public <R extends hudson.model.Run> R assertBuildStatusSuccess(R r)
throws Exception
Exceptionpublic <R extends hudson.model.Run> R assertBuildStatusSuccess(Future<? extends R> r) throws Exception
Exceptionpublic <J extends hudson.model.AbstractProject<J,R>,R extends hudson.model.AbstractBuild<J,R>> R buildAndAssertSuccess(J job)
throws Exception
Exceptionpublic hudson.model.FreeStyleBuild buildAndAssertSuccess(hudson.model.FreeStyleProject job)
throws Exception
this.<J,R>buildAndAssertSuccess(...) type hints under JDK 7 javac (and supposedly also IntelliJ).Exceptionpublic void assertLogContains(String substring, hudson.model.Run run) throws Exception
Exceptionpublic void assertLogNotContains(String substring, hudson.model.Run run) throws Exception
Exceptionprotected static String getLog(hudson.model.Run run) throws IOException
IOExceptionpublic void assertXPath(com.gargoylesoftware.htmlunit.html.HtmlPage page,
String xpath)
public void assertXPath(com.gargoylesoftware.htmlunit.html.DomNode page,
String xpath)
page - xpath - public void assertXPathValue(com.gargoylesoftware.htmlunit.html.DomNode page,
String xpath,
String expectedValue)
public void assertXPathValueContains(com.gargoylesoftware.htmlunit.html.DomNode page,
String xpath,
String needle)
public void assertXPathResultsContainText(com.gargoylesoftware.htmlunit.html.DomNode page,
String xpath,
String needle)
public void assertAllImageLoadSuccessfully(com.gargoylesoftware.htmlunit.html.HtmlPage p)
public void assertStringContains(String message, String haystack, String needle)
public void assertHelpExists(Class<? extends hudson.model.Describable> type, String properties) throws Exception
type - The describable class type that should have the associated help files.properties - ','-separated list of properties whose help files should exist.Exceptionpublic com.gargoylesoftware.htmlunit.html.HtmlPage submit(com.gargoylesoftware.htmlunit.html.HtmlForm form)
throws Exception
HtmlForm.submit(com.gargoylesoftware.htmlunit.html.SubmittableElement) doesn't work correctly due to the use of YUI in Hudson.Exceptionpublic com.gargoylesoftware.htmlunit.html.HtmlPage submit(com.gargoylesoftware.htmlunit.html.HtmlForm form,
String name)
throws Exception
name - This corresponds to the @name of <f:submit />Exceptionprotected com.gargoylesoftware.htmlunit.html.HtmlInput findPreviousInputElement(com.gargoylesoftware.htmlunit.html.HtmlElement current,
String name)
protected com.gargoylesoftware.htmlunit.html.HtmlButton getButtonByCaption(com.gargoylesoftware.htmlunit.html.HtmlForm f,
String s)
public hudson.model.TaskListener createTaskListener()
TaskListener connected to stdout.public void assertEqualBeans(Object lhs, Object rhs, String properties) throws Exception
This method takes two objects that have properties (getXyz, isXyz, or just the public xyz field),
and makes sure that the property values for each given property are equals (by using TestCase.assertEquals(Object, Object))
Property values can be null on both objects, and that is OK, but passing in a property that doesn't exist will fail an assertion.
This method is very convenient for comparing a large number of properties on two objects, for example to verify that the configuration is identical after a config screen roundtrip.
lhs - One of the two objects to be compared.rhs - The other object to be comparedproperties - ','-separated list of property names that are compared.Exceptionprotected void setQuietPeriod(int qp)
public void assertEqualDataBoundBeans(Object lhs, Object rhs) throws Exception
assertEqualBeans(Object, Object, String) but figure out the properties
via DataBoundConstructorExceptionpublic void assertEqualDataBoundBeans(List<?> lhs, List<?> rhs) throws Exception
assertEqualDataBoundBeans(Object, Object)Exceptionprotected Constructor<?> findDataBoundConstructor(Class<?> c)
protected <T extends hudson.model.Descriptor<?>> T get(Class<T> d)
protected boolean isSomethingHappening()
protected void waitUntilNoActivity()
throws Exception
This method uses a default time out to prevent infinite hang in the automated test execution environment.
Exceptionprotected void waitUntilNoActivityUpTo(int timeout)
throws Exception
Exceptionprotected void recipe()
throws Exception
setUp() to give a test case an opportunity to
control the test environment in which Hudson is run.
One could override this method and call a series of withXXX methods,
or you can use the annotations with Recipe meta-annotation.
Exceptionprotected void recipeLoadCurrentPlugin()
throws Exception
This file is created by maven-hpi-plugin at the testCompile phase when the current packaging is hpi.
Exceptionpublic HudsonTestCase withNewHome()
public HudsonTestCase withExistingHome(File source) throws Exception
Exceptionpublic HudsonTestCase withPresetData(String name)
test/src/main/preset-data/
for available datasets and what they mean.public HudsonTestCase with(HudsonHomeLoader homeLoader)
public <V> V executeOnServer(Callable<V> c) throws Exception
In HudsonTestCase, a thread that's executing the test code is different from the thread
that carries out HTTP requests made through HudsonTestCase.WebClient. But sometimes you want to
make assertions and other calls with side-effect from within the request handling thread.
This method allows you to do just that. It is useful for testing some methods that
require StaplerRequest and StaplerResponse, or getting the credential
of the current user (via Jenkins.getAuthentication(), and so on.
c - The closure to be executed on the server.Exception - If a closure throws any exception, that exception will be carried forward.public HudsonTestCase.WebClient createWebClient()
Copyright © 2004–2019. All rights reserved.