Uses of Package
org.jvnet.hudson.test
Package
Description
Test harness for Jenkins and its plugins.
Declaratively specify the environment in which a test will be run.
-
-
-
-
ClassDescriptionPartial
Builder
implementation for writing a one-off throw-away builder used during tests. -
ClassDescriptionTest bed to verify the configuration roundtripness of the
ComputerConnector
.Gets notified before the test completes to perform additional cleanup.MockBuilder
that always cause a build to fail.Fake a process launch.Saves and restores sort of a flag, such as astatic
field or system property.Controls how aHudsonTestCase
initializesJENKINS_HOME
.PageCreator
that understands JNLP file.Deprecated.Deprecated.ExtendsWebClient
and provide convenience methods for accessing Hudson.The options used to (re)start an inbound agent.A builder ofInboundAgentRule.Options
.Acts as a reverse proxy, so that during a test we can avoid hitting updates.jenkins.io.Test bed to verify the configuration roundtripness of theComputerConnector
.The code that implements the recipe semantics.JUnit rule to allow test cases to fire up a Jenkins instance.Convenience wrapper for JSON responses.ExtendsWebClient
and provide convenience methods for accessing Hudson.One step to run, intended to be a SAM for lambdas withJenkinsSessionRule.then(org.jvnet.hudson.test.JenkinsSessionRule.Step)
.LikeRunnable
but can throw any exception.A test rule which allows you to easily enable one or more loggers for the duration of a test.An authorization strategy configured in a fluent style from test code.A grant of a set of permissions.A grant of some permissions in certain places.Forces the build result to be some pre-configured value.Minimal implementation of a modifiable item group akin to the CloudBees Folders plugin.Allows testing of anything related toQueueItemAuthenticator
.Slave that pretends to fork processes.LikeJenkinsSessionRule
but running Jenkins in a more realistic environment.One step to run.Alternative toRealJenkinsRule.addPlugins(java.lang.String...)
orTestExtension
that lets you build a test-only plugin on the fly.Provides a pattern for executing a sequence of steps.One step to run, intended to be a SAM for lambdas withRestartableJenkinsRule.then(org.jvnet.hudson.test.RestartableJenkinsRule.Step)
.Utility to display the log of a build in real time.Allocates temporary directories and cleans it up at the end.A crumb issuer that issues a constant crumb value.Works likeExtension
except used for inserting extensions during unit tests.PluginManager
that can work with unit tests where dependencies are just jars.MockBuilder
that always cause a build to fail.Holder for an object which is notSerializable
but can be serialized safely using XStream. -
ClassDescriptionDeprecated.New code should use
JenkinsRule
.Meta-annotation for recipe annotations, which controls the test environment set up.The code that implements the recipe semantics.JUnit rule to allow test cases to fire up a Jenkins instance.
JenkinsRule
.