Package org.jvnet.hudson.test
Class GroovyHudsonTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.jvnet.hudson.test.HudsonTestCase
org.jvnet.hudson.test.GroovyHudsonTestCase
- All Implemented Interfaces:
hudson.ExtensionPoint
,hudson.model.Action
,hudson.model.ModelObject
,hudson.model.RootAction
,junit.framework.Test
Deprecated.
HudsonTestCase
with more convenience methods for Groovy.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jvnet.hudson.test.HudsonTestCase
HudsonTestCase.BreakException, HudsonTestCase.TestBuildWrapper, HudsonTestCase.WebClient
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class org.jvnet.hudson.test.HudsonTestCase
computerConnectorTester, contextPath, env, explodedWarDir, homeLoader, hudson, jenkins, jsDebugger, localPort, NO_PROPERTIES, recipes, server, SLAVE_DEBUG_PORT, tearDowns, timeout, useLocalPluginManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhudson.tasks.Builder
builder
(groovy.lang.Closure<?> c) Deprecated.Wraps a closure as aBuilder
.executeOnServer
(groovy.lang.Closure<?> c) Deprecated.Executes the given closure on the server, in the context of an HTTP request.Methods inherited from class org.jvnet.hudson.test.HudsonTestCase
assertAllImageLoadSuccessfully, assertBuildStatus, assertBuildStatusSuccess, assertBuildStatusSuccess, assertEqualBeans, assertEqualDataBoundBeans, assertEqualDataBoundBeans, assertGoodStatus, assertHelpExists, assertLogContains, assertLogNotContains, assertStringContains, assertStringContains, assertXPath, assertXPath, assertXPathResultsContainText, assertXPathValue, assertXPathValueContains, buildAndAssertSuccess, buildAndAssertSuccess, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configureUpdateCenter, configureUserRealm, createComputerLauncher, createDummySecurityRealm, createFreeStyleProject, createFreeStyleProject, createLocalLauncher, createOnlineSlave, createOnlineSlave, createOnlineSlave, createPretendSlave, createSlave, createSlave, createSlave, createSlave, createSlave, createSlave, createTaskListener, createTmpDir, createUniqueProjectName, createWebClient, createWebServer2, executeOnServer, findDataBoundConstructor, findPreviousInputElement, get, getButtonByCaption, getDisplayName, getIconFileName, getLog, getURL, getUrlName, interactiveBreak, isGoodHttpStatus, isSomethingHappening, last, newHudson, pause, recipe, recipeLoadCurrentPlugin, runBare, runTest, search, setPluginManager, setQuietPeriod, setUp, setUpTimeout, submit, submit, tearDown, waitUntilNoActivity, waitUntilNoActivityUpTo, with, withExistingHome, withNewHome, withPresetData, writeReplace
Methods inherited from class junit.framework.TestCase
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, toString
-
Constructor Details
-
GroovyHudsonTestCase
public GroovyHudsonTestCase()Deprecated.
-
-
Method Details
-
executeOnServer
Deprecated.Executes the given closure on the server, in the context of an HTTP request. This is useful for testing some methods that requireStaplerRequest2
andStaplerResponse2
.The closure will get the request and response as parameters.
- Throws:
Exception
-
builder
public hudson.tasks.Builder builder(groovy.lang.Closure<?> c) Deprecated.Wraps a closure as aBuilder
.
-
GroovyJenkinsRule
instead.