A B C D E F G H I J L N O P R S T U V W

A

allocate() - Method in interface org.jvnet.hudson.test.HudsonHomeLoader
Returns a directory to be used as HUDSON_HOME
allocate() - Method in class org.jvnet.hudson.test.HudsonHomeLoader.CopyExisting
 
allocate() - Method in class org.jvnet.hudson.test.HudsonHomeLoader.Local
 
allocate() - Method in class org.jvnet.hudson.test.TemporaryDirectoryAllocator
Allocates a new empty temporary directory and returns it.
assertBuildStatus(Result, R) - Method in class org.jvnet.hudson.test.HudsonTestCase
Asserts that the outcome of the build is a specific outcome.
assertBuildStatusSuccess(R) - Method in class org.jvnet.hudson.test.HudsonTestCase
 
assertLogContains(String, Run) - Method in class org.jvnet.hudson.test.HudsonTestCase
Asserts that the console output of the build contains the given substring.
assertXPath(HtmlPage, String) - Method in class org.jvnet.hudson.test.HudsonTestCase
Asserts that the XPath matches.

B

Bug - Annotation Type in org.jvnet.hudson.test
Marks a test case to a bug filed in the issue tracker.

C

callStack - Variable in class org.jvnet.hudson.test.rhino.JavaScriptDebugger
Call stack as a list.
CallStackFrame - Class in org.jvnet.hudson.test.rhino
Stack frame.
CallStackFrame(JavaScriptDebugger, DebuggableScript) - Constructor for class org.jvnet.hudson.test.rhino.CallStackFrame
 
CaptureEnvironmentBuilder - Class in org.jvnet.hudson.test
Builder that captures the environment variables used during a build.
CaptureEnvironmentBuilder() - Constructor for class org.jvnet.hudson.test.CaptureEnvironmentBuilder
 
CaptureEnvironmentBuilder.DescriptorImpl - Class in org.jvnet.hudson.test
 
CaptureEnvironmentBuilder.DescriptorImpl() - Constructor for class org.jvnet.hudson.test.CaptureEnvironmentBuilder.DescriptorImpl
 
checkout(AbstractBuild, Launcher, FilePath, BuildListener, File) - Method in class org.jvnet.hudson.test.ExtractResourceSCM
 
checkout(AbstractBuild, Launcher, FilePath, BuildListener, File) - Method in class org.jvnet.hudson.test.SingleFileSCM
 
configureDefaultAnt() - Method in class org.jvnet.hudson.test.HudsonTestCase
Extracts Ant and configures it.
configureDefaultMaven() - Method in class org.jvnet.hudson.test.HudsonTestCase
Locates Maven2 and configure that as the only Maven in the system.
configureUserRealm() - Method in class org.jvnet.hudson.test.HudsonTestCase
Configures a security realm for a test.
contextPath - Variable in class org.jvnet.hudson.test.HudsonTestCase
Where in the Server is Hudson deploed?
createFreeStyleProject() - Method in class org.jvnet.hudson.test.HudsonTestCase
 
createFreeStyleProject(String) - Method in class org.jvnet.hudson.test.HudsonTestCase
 
createLocalLauncher() - Method in class org.jvnet.hudson.test.HudsonTestCase
Creates Launcher.LocalLauncher.
createMatrixProject() - Method in class org.jvnet.hudson.test.HudsonTestCase
 
createMatrixProject(String) - Method in class org.jvnet.hudson.test.HudsonTestCase
 
createMavenProject() - Method in class org.jvnet.hudson.test.HudsonTestCase
Creates a empty Maven project with an unique name.
createMavenProject(String) - Method in class org.jvnet.hudson.test.HudsonTestCase
Creates a empty Maven project with the given name.
createPage(WebResponse, WebWindow) - Method in class org.jvnet.hudson.test.HudsonPageCreator
 
createSlave() - Method in class org.jvnet.hudson.test.HudsonTestCase
 
createSlave(Label) - Method in class org.jvnet.hudson.test.HudsonTestCase
Creates and launches a new slave on the local host.
createSlave(Label, EnvVars) - Method in class org.jvnet.hudson.test.HudsonTestCase
Creates a slave with certain additional environment variables
createTaskListener() - Method in class org.jvnet.hudson.test.HudsonTestCase
Creates a TaskListener connected to stdout.
createTmpDir() - Method in class org.jvnet.hudson.test.HudsonTestCase
Allocates a new temporary directory for the duration of this test.
createWebServer() - Method in class org.jvnet.hudson.test.HudsonTestCase
Prepares a webapp hosting environment to get ServletContext implementation that we need for testing.

D

decorateHome(HudsonTestCase, File) - Method in class org.jvnet.hudson.test.recipes.Recipe.Runner
Called right before Hudson.Hudson(File, ServletContext) is invoked to decorate the hudson home directory.
decorateHome(HudsonTestCase, File) - Method in class org.jvnet.hudson.test.recipes.WithPlugin.RunnerImpl
 
dispose() - Method in class org.jvnet.hudson.test.TemporaryDirectoryAllocator
Deletes all allocated temporary directories.
dispose() - Method in class org.jvnet.hudson.test.TestEnvironment
 
disposeAsync() - Method in class org.jvnet.hudson.test.TemporaryDirectoryAllocator
Deletes all allocated temporary directories asynchronously.

E

Email - Annotation Type in org.jvnet.hudson.test
Marks a test case to a bug reported in the mailing list.
env - Variable in class org.jvnet.hudson.test.HudsonTestCase
 
ENVIRONMENT - Static variable in class org.jvnet.hudson.test.TestEnvironment
 
ExtractResourceSCM - Class in org.jvnet.hudson.test
SCM useful for testing that extracts the given resource as a zip file.
ExtractResourceSCM(URL) - Constructor for class org.jvnet.hudson.test.ExtractResourceSCM
 

F

FailureBuilder - Class in org.jvnet.hudson.test
Mock Builder that always cause a build to fail.
FailureBuilder() - Constructor for class org.jvnet.hudson.test.FailureBuilder
 
FailureBuilder.DescriptorImpl - Class in org.jvnet.hudson.test
 
FailureBuilder.DescriptorImpl() - Constructor for class org.jvnet.hudson.test.FailureBuilder.DescriptorImpl
 
fnOrScript - Variable in class org.jvnet.hudson.test.rhino.CallStackFrame
The function being executed.

G

get() - Static method in class org.jvnet.hudson.test.TestEnvironment
 
getContextPath() - Method in class org.jvnet.hudson.test.HudsonTestCase.WebClient
Returns the URL of the webapp top page.
getDescriptor() - Method in class org.jvnet.hudson.test.TestBuilder
 
getDisplayName() - Method in class org.jvnet.hudson.test.CaptureEnvironmentBuilder.DescriptorImpl
 
getDisplayName() - Method in class org.jvnet.hudson.test.FailureBuilder.DescriptorImpl
 
getDisplayName() - Method in class org.jvnet.hudson.test.SleepBuilder.DescriptorImpl
 
getEnvVars() - Method in class org.jvnet.hudson.test.CaptureEnvironmentBuilder
 
getFrame(Context, DebuggableScript) - Method in class org.jvnet.hudson.test.rhino.JavaScriptDebugger
 
getPage(Run) - Method in class org.jvnet.hudson.test.HudsonTestCase.WebClient
Short for getPage(r,""), to access the top page of a build.
getPage(Run, String) - Method in class org.jvnet.hudson.test.HudsonTestCase.WebClient
Accesses a page inside Run.
getPage(Item) - Method in class org.jvnet.hudson.test.HudsonTestCase.WebClient
 
getPage(Item, String) - Method in class org.jvnet.hudson.test.HudsonTestCase.WebClient
 
getPage(Node) - Method in class org.jvnet.hudson.test.HudsonTestCase.WebClient
 
getPage(Node, String) - Method in class org.jvnet.hudson.test.HudsonTestCase.WebClient
 
getPage(String) - Method in class org.jvnet.hudson.test.HudsonTestCase.WebClient
Deprecated. This method expects a full URL. This method is marked as deprecated to warn you that you probably should be using HudsonTestCase.WebClient.goTo(String) method, which accepts a relative path within the Hudson being tested. (IOW, if you really need to hit a website on the internet, there's nothing wrong with using this method.)
getVariables() - Method in class org.jvnet.hudson.test.rhino.CallStackFrame
In-scope variables.
goTo(String) - Method in class org.jvnet.hudson.test.HudsonTestCase.WebClient
Requests a page within Hudson.
goTo(String, String) - Method in class org.jvnet.hudson.test.HudsonTestCase.WebClient
 

H

handleCompilationDone(Context, DebuggableScript, String) - Method in class org.jvnet.hudson.test.rhino.JavaScriptDebugger
 
homeLoader - Variable in class org.jvnet.hudson.test.HudsonTestCase
 
hudson - Variable in class org.jvnet.hudson.test.HudsonTestCase
 
HudsonHomeLoader - Interface in org.jvnet.hudson.test
Controls how a HudsonTestCase initializes HUDSON_HOME.
HudsonHomeLoader.CopyExisting - Class in org.jvnet.hudson.test
Allocates a new directory by copying from an existing directory, or unzipping from a zip file.
HudsonHomeLoader.CopyExisting(File) - Constructor for class org.jvnet.hudson.test.HudsonHomeLoader.CopyExisting
Either a zip file or a directory that contains the home image.
HudsonHomeLoader.CopyExisting(URL) - Constructor for class org.jvnet.hudson.test.HudsonHomeLoader.CopyExisting
Extracts from a zip file in the resource.
HudsonHomeLoader.Local - Class in org.jvnet.hudson.test
Allocates a new directory by copying from a test resource
HudsonHomeLoader.Local(Method) - Constructor for class org.jvnet.hudson.test.HudsonHomeLoader.Local
 
HudsonPageCreator - Class in org.jvnet.hudson.test
PageCreator that understands JNLP file.
HudsonPageCreator() - Constructor for class org.jvnet.hudson.test.HudsonPageCreator
 
HudsonTestCase - Class in org.jvnet.hudson.test
Base class for all Hudson test cases.
HudsonTestCase(String) - Constructor for class org.jvnet.hudson.test.HudsonTestCase
 
HudsonTestCase() - Constructor for class org.jvnet.hudson.test.HudsonTestCase
 
HudsonTestCase.WebClient - Class in org.jvnet.hudson.test
Extends WebClient and provide convenience methods for accessing Hudson.
HudsonTestCase.WebClient() - Constructor for class org.jvnet.hudson.test.HudsonTestCase.WebClient
 

I

INSTANCE - Static variable in class org.jvnet.hudson.test.HudsonPageCreator
 

J

JavaScriptDebugger - Class in org.jvnet.hudson.test.rhino
Monitors the execution of the JavaScript inside HtmlUnit, and provides debug information such as call stacks, variables, arguments, etc.
JavaScriptDebugger() - Constructor for class org.jvnet.hudson.test.rhino.JavaScriptDebugger
 
jsDebugger - Variable in class org.jvnet.hudson.test.HudsonTestCase
JavaScript "debugger" that provides you information about the JavaScript call stack and the current values of the local variables in those stack frame.

L

last(List<T>) - Method in class org.jvnet.hudson.test.HudsonTestCase
Returns the last item in the list.
LenientRunnable - Interface in org.jvnet.hudson.test
Like Runnable but can throw any exception.
LocalData - Annotation Type in org.jvnet.hudson.test.recipes
Runs a test case with a data set local to test method or the test class.
LocalData.RunnerImpl - Class in org.jvnet.hudson.test.recipes
 
LocalData.RunnerImpl() - Constructor for class org.jvnet.hudson.test.recipes.LocalData.RunnerImpl
 
localPort - Variable in class org.jvnet.hudson.test.HudsonTestCase
TCP/IP port that the server is listening on.
login(String, String) - Method in class org.jvnet.hudson.test.HudsonTestCase.WebClient
Logs in to Hudson.
login(String) - Method in class org.jvnet.hudson.test.HudsonTestCase.WebClient
Logs in to Hudson, by using the user name as the password.

N

NEW - Static variable in interface org.jvnet.hudson.test.HudsonHomeLoader
Allocates a new empty directory, meaning this will emulate the fresh Hudson installation.
newHudson() - Method in class org.jvnet.hudson.test.HudsonTestCase
Creates a new instance of Hudson.
newInstance(StaplerRequest, JSONObject) - Method in class org.jvnet.hudson.test.CaptureEnvironmentBuilder.DescriptorImpl
 
newInstance(StaplerRequest, JSONObject) - Method in class org.jvnet.hudson.test.FailureBuilder.DescriptorImpl
 
newInstance(StaplerRequest, JSONObject) - Method in class org.jvnet.hudson.test.SleepBuilder.DescriptorImpl
 

O

onDebuggerStatement(Context) - Method in class org.jvnet.hudson.test.rhino.CallStackFrame
 
onEnter(Context, Scriptable, Scriptable, Object[]) - Method in class org.jvnet.hudson.test.rhino.CallStackFrame
 
onExceptionThrown(Context, Throwable) - Method in class org.jvnet.hudson.test.rhino.CallStackFrame
 
onExit(Context, boolean, Object) - Method in class org.jvnet.hudson.test.rhino.CallStackFrame
 
onLineChange(Context, int) - Method in class org.jvnet.hudson.test.rhino.CallStackFrame
 
org.jvnet.hudson.test - package org.jvnet.hudson.test
Test harness for Hudson and its plugins.
org.jvnet.hudson.test.recipes - package org.jvnet.hudson.test.recipes
Declaratively specify the environment in which a test will be run.
org.jvnet.hudson.test.rhino - package org.jvnet.hudson.test.rhino
Code to interface with Rhino the JavaScript engine.
owner - Variable in class org.jvnet.hudson.test.rhino.CallStackFrame
JavaScriptDebugger that this stack frame lives in.

P

pause() - Method in class org.jvnet.hudson.test.HudsonTestCase
Pauses the execution until ENTER is hit in the console.
perform(AbstractBuild<?, ?>, Launcher, BuildListener) - Method in class org.jvnet.hudson.test.CaptureEnvironmentBuilder
 
perform(AbstractBuild<?, ?>, Launcher, BuildListener) - Method in class org.jvnet.hudson.test.FailureBuilder
 
perform(AbstractBuild<?, ?>, Launcher, BuildListener) - Method in class org.jvnet.hudson.test.SleepBuilder
 
perform(AbstractBuild<?, ?>, Launcher, BuildListener) - Method in class org.jvnet.hudson.test.TestBuilder
 
pin() - Method in class org.jvnet.hudson.test.TestEnvironment
Associates (or pin down) this TestEnvironment to the current thread, so that from within the test you can access this object without referring to any context.
PresetData - Annotation Type in org.jvnet.hudson.test.recipes
Runs a test case with one of the preset HUDSON_HOME data set.
PresetData.DataSet - Enum in org.jvnet.hudson.test.recipes
 
PresetData.RunnerImpl - Class in org.jvnet.hudson.test.recipes
 
PresetData.RunnerImpl() - Constructor for class org.jvnet.hudson.test.recipes.PresetData.RunnerImpl
 

R

recipe() - Method in class org.jvnet.hudson.test.HudsonTestCase
Called during the HudsonTestCase.setUp() to give a test case an opportunity to control the test environment in which Hudson is run.
Recipe - Annotation Type in org.jvnet.hudson.test.recipes
Meta-annotation for recipe annotations, which controls the test environment set up.
Recipe.Runner<T extends java.lang.annotation.Annotation> - Class in org.jvnet.hudson.test.recipes
The code that implements the recipe semantics.
Recipe.Runner() - Constructor for class org.jvnet.hudson.test.recipes.Recipe.Runner
 
recipeLoadCurrentPlugin() - Method in class org.jvnet.hudson.test.HudsonTestCase
If this test harness is launched for a Hudson plugin, locate the target/test-classes/the.hpl and add a recipe to install that to the new Hudson.
recipes - Variable in class org.jvnet.hudson.test.HudsonTestCase
 
run() - Method in interface org.jvnet.hudson.test.LenientRunnable
 
runTest() - Method in class org.jvnet.hudson.test.HudsonTestCase
 

S

search(String) - Method in class org.jvnet.hudson.test.HudsonTestCase
Performs a search from the search box.
server - Variable in class org.jvnet.hudson.test.HudsonTestCase
 
setUp() - Method in class org.jvnet.hudson.test.HudsonTestCase
 
setup(HudsonTestCase, LocalData) - Method in class org.jvnet.hudson.test.recipes.LocalData.RunnerImpl
 
setup(HudsonTestCase, PresetData) - Method in class org.jvnet.hudson.test.recipes.PresetData.RunnerImpl
 
setup(HudsonTestCase, T) - Method in class org.jvnet.hudson.test.recipes.Recipe.Runner
Called during TestCase.setUp() to prepare the test environment.
setup(HudsonTestCase, WithPlugin) - Method in class org.jvnet.hudson.test.recipes.WithPlugin.RunnerImpl
 
SingleFileSCM - Class in org.jvnet.hudson.test
SCM useful for testing that puts just one file in the workspace.
SingleFileSCM(String, byte[]) - Constructor for class org.jvnet.hudson.test.SingleFileSCM
 
SingleFileSCM(String, String) - Constructor for class org.jvnet.hudson.test.SingleFileSCM
 
SingleFileSCM(String, URL) - Constructor for class org.jvnet.hudson.test.SingleFileSCM
When a check out is requested, serve the contents of the URL and place it with the given path name.
SleepBuilder - Class in org.jvnet.hudson.test
Builder that just sleeps for the specified amount of milli-seconds.
SleepBuilder(long) - Constructor for class org.jvnet.hudson.test.SleepBuilder
 
SleepBuilder.DescriptorImpl - Class in org.jvnet.hudson.test
 
SleepBuilder.DescriptorImpl() - Constructor for class org.jvnet.hudson.test.SleepBuilder.DescriptorImpl
 
submit(HtmlForm) - Method in class org.jvnet.hudson.test.HudsonTestCase
Submits the form.

T

tearDown() - Method in class org.jvnet.hudson.test.HudsonTestCase
 
tearDown(HudsonTestCase, T) - Method in class org.jvnet.hudson.test.recipes.Recipe.Runner
Called during TestCase.tearDown() to shut down the test environment.
tearDowns - Variable in class org.jvnet.hudson.test.HudsonTestCase
Runnables to be invoked at HudsonTestCase.tearDown().
TemporaryDirectoryAllocator - Class in org.jvnet.hudson.test
Allocates temporary directories and cleans it up at the end.
TemporaryDirectoryAllocator(File) - Constructor for class org.jvnet.hudson.test.TemporaryDirectoryAllocator
 
TemporaryDirectoryAllocator() - Constructor for class org.jvnet.hudson.test.TemporaryDirectoryAllocator
 
temporaryDirectoryAllocator - Variable in class org.jvnet.hudson.test.TestEnvironment
 
TestBuilder - Class in org.jvnet.hudson.test
Partial Builder implementation for writing a one-off throw-away builder used during tests.
TestBuilder() - Constructor for class org.jvnet.hudson.test.TestBuilder
 
TestEnvironment - Class in org.jvnet.hudson.test
TODO: deprecate this, and just consolidate this to HudsonTestCase.
TestEnvironment() - Constructor for class org.jvnet.hudson.test.TestEnvironment
 
time - Variable in class org.jvnet.hudson.test.SleepBuilder
 
toString() - Method in class org.jvnet.hudson.test.rhino.CallStackFrame
Formats this call stack, arguments, and its local variables as a human readable string.
toString() - Method in class org.jvnet.hudson.test.rhino.JavaScriptDebugger
Formats the current call stack into a human readable string.

U

Url - Annotation Type in org.jvnet.hudson.test
Marks a test case to a bug reported in the other sources.

V

valueOf(String) - Static method in enum org.jvnet.hudson.test.recipes.PresetData.DataSet
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.jvnet.hudson.test.recipes.PresetData.DataSet
Returns an array containing the constants of this enum type, in the order they are declared.

W

with(HudsonHomeLoader) - Method in class org.jvnet.hudson.test.HudsonTestCase
 
withExistingHome(File) - Method in class org.jvnet.hudson.test.HudsonTestCase
 
withNewHome() - Method in class org.jvnet.hudson.test.HudsonTestCase
 
WithPlugin - Annotation Type in org.jvnet.hudson.test.recipes
Installs the specified plugin before launching Hudson.
WithPlugin.RunnerImpl - Class in org.jvnet.hudson.test.recipes
 
WithPlugin.RunnerImpl() - Constructor for class org.jvnet.hudson.test.recipes.WithPlugin.RunnerImpl
 
withPresetData(String) - Method in class org.jvnet.hudson.test.HudsonTestCase
Declares that this test case expects to start with one of the preset data sets.

A B C D E F G H I J L N O P R S T U V W

Copyright © 2009. All Rights Reserved.