Package org.jvnet.hudson.test

Test harness for Jenkins and its plugins.

See:
          Description

Interface Summary
FakeLauncher Fake a process launch.
HudsonHomeLoader Controls how a HudsonTestCase initializes JENKINS_HOME.
LenientRunnable Like Runnable but can throw any exception.
 

Class Summary
CaptureEnvironmentBuilder Builder that captures the environment variables used during a build.
CaptureEnvironmentBuilder.DescriptorImpl  
ClosureExecuterAction Server-side logic that implements HudsonTestCase.executeOnServer(Callable).
ComputerConnectorTester Test bed to verify the configuration roundtripness of the ComputerConnector.
ComputerConnectorTester.DescriptorImpl  
DefaultConstructorChecker Tests that the specified class has the default constructor.
ExtractChangeLogParser  
ExtractChangeLogParser.ExtractChangeLogEntry  
ExtractChangeLogParser.FileInZip  
ExtractChangeLogSet  
ExtractResourceSCM SCM useful for testing that extracts the given resource as a zip file.
ExtractResourceWithChangesSCM SCM useful for testing that extracts the given resource as a zip file.
FailureBuilder Mock Builder that always cause a build to fail.
FailureBuilder.DescriptorImpl  
FakeChangeLogSCM Fake SCM implementation that can report arbitrary commits from arbitrary users.
FakeChangeLogSCM.ChangelogAction  
FakeChangeLogSCM.EntryImpl  
FakeChangeLogSCM.FakeChangeLogParser  
FakeChangeLogSCM.FakeChangeLogSet  
FakeLauncher.FinishedProc Fake Proc implementation that represents a completed process.
GroovyHudsonTestCase HudsonTestCase with more convenience methods for Groovy.
HudsonHomeLoader.CopyExisting Allocates a new directory by copying from an existing directory, or unzipping from a zip file.
HudsonHomeLoader.Local Allocates a new directory by copying from a test resource
HudsonPageCreator PageCreator that understands JNLP file.
HudsonTestCase Base class for all Jenkins test cases.
HudsonTestCase.ComputerListenerImpl  
HudsonTestCase.TestBuildWrapper  
HudsonTestCase.TestBuildWrapper.TestBuildWrapperDescriptor  
JavaNetReverseProxy Acts as a reverse proxy, so that during a test we can avoid hitting updates.jenkins-ci.org.
JellyTestSuiteBuilder Builds up a TestSuite for performing static syntax checks on Jelly scripts.
JenkinsComputerConnectorTester Test bed to verify the configuration roundtripness of the ComputerConnector.
JenkinsComputerConnectorTester.DescriptorImpl  
JenkinsMatchers Some handy matchers.
JenkinsRecipe.Runner<T extends Annotation> The code that implements the recipe semantics.
JenkinsRule JUnit 4.10+ style rule to allow test cases to fire up a Jenkins instance
JenkinsRule.ComputerListenerImpl  
JenkinsRule.DummySecurityRealm  
JenkinsRule.TestBuildWrapper  
JenkinsRule.TestBuildWrapper.TestBuildWrapperDescriptor  
MemoryAssert Static utility methods for verifying heap memory usage.
MemoryAssert.HistogramElement  
MockBuilder Forces the build result to be some pre-configured value.
MockBuilder.DescriptorImpl  
MockFolder Minimal implementation of a modifiable item group akin to the CloudBees Folders plugin.
MockFolder.DescriptorImpl  
PluginAutomaticTestBuilder Called by the code generated by maven-hpi-plugin to build tests for plugins.
PluginAutomaticTestBuilder.CliSanityTest  
PretendSlave Slave that pretends to fork processes.
PretendSlave.DescriptorImpl  
SequenceLock Lock mechanism to let multiple threads execute phases sequentially.
SingleFileSCM SCM useful for testing that puts just one file in the workspace.
SleepBuilder Builder that just sleeps for the specified amount of milli-seconds.
SleepBuilder.DescriptorImpl  
TemporaryDirectoryAllocator Allocates temporary directories and cleans it up at the end.
TestBuilder Partial Builder implementation for writing a one-off throw-away builder used during tests.
TestCrumbIssuer A crumb issuer that issues a constant crumb value.
TestCrumbIssuer.DescriptorImpl  
TestEnvironment TODO: deprecate this, and just consolidate this to HudsonTestCase.
TestExtensionLoader Loads TestExtensions.
TestPluginManager PluginManager to speed up unit tests.
ThreadPoolImpl  
TouchBuilder  
UnstableBuilder Mock Builder that always cause a build to fail.
UnstableBuilder.DescriptorImpl  
WithoutJenkins.RunnerImpl  
 

Exception Summary
HudsonTestCase.BreakException  
JenkinsRule.BreakException  
 

Annotation Types Summary
JenkinsRecipe Meta-annotation for recipe annotations, which controls the test environment set up.
TestExtension Works like Extension except used for inserting extensions during unit tests.
WithoutJenkins An annotation for test methods that do not require the JenkinsRule/HudsonTestCase to create and tear down the jenkins instance.
 

Package org.jvnet.hudson.test Description

Test harness for Jenkins and its plugins. Start exploring from JenkinsRule.



Copyright © 2004-2013. All Rights Reserved.