A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

allowedMethodCallbacks - Field in PipelineTestHelper
List of allowed methods with default interceptors.
argsToString() - Method in MethodCall
@see #callArgsToString(com.lesfurets.jenkins.unit.MethodCall)
argsToString() - Method in MethodSignature
ARGUMENT_MISMATCH - Field in RegressionTestHelper
assertJobStatusFailure() - Method in BasePipelineTest
Asserts the job status is FAILURE.
assertJobStatusSuccess() - Method in BasePipelineTest
Asserts the job status is SUCCESS.
assertJobStatusUnstable() - Method in BasePipelineTest
Asserts the job status is UNSTABLE.

B

BasePipelineTest - Class in com.lesfurets.jenkins.unit
BasePipelineTest() - Constructor in BasePipelineTest
BasePipelineTestCPS - Class in com.lesfurets.jenkins.unit.cps
BasePipelineTestCPS() - Constructor in BasePipelineTestCPS
BaseRegressionTest - Class in com.lesfurets.jenkins.unit
BaseRegressionTestCPS - Class in com.lesfurets.jenkins.unit.cps

C

call(SourceUnit, GeneratorContext, ClassNode) - Method in LibraryAnnotationTransformer
callArgsToString(MethodCall) - Method in MethodCall
Extract joined string representation of call arguments.
callClosure(Closure, Object) - Method in PipelineTestHelper
Call closure by handling spreading of parameter default values
callClosure(Closure, Object) - Method in PipelineTestHelperCPS
Call closure using Continuation steps of groovy CPS At each step whole environment of the step is verified against serializability
callIfClosure(Object, Object) - Method in PipelineTestHelper
callMethod(MetaMethod, Object, Object) - Method in PipelineTestHelper
Call given method on delegate object with args parameters
callMethod(MetaMethod, Object, Object) - Method in PipelineTestHelperCPS
callToSignature(MethodCall) - Method in MethodCall
Extract method signature
clearCallStack() - Method in PipelineTestHelper
Clear call stack
CLONE_TIMEOUT - Field in SourceRetriever
compareCallStack(List<MethodCall>, List<MethodCall>) - Method in RegressionTestHelper
For all method calls in stack a, there is a corresponding method call in stack b

D

E

equals(def) - Method in MethodCall
equals(def) - Method in MethodSignature

F

G

getAllowedMethodEntry(String, Object) - Method in PipelineTestHelper
Search for the allowed method entry A null Closure will mean that the method is allowed but not intercepted.
getIdentifier() - Method in LibraryRecord
getLibraryId(LibraryConfiguration, String) - Method in LibraryLoader
getMethodInterceptor() - Method in PipelineTestHelper
getMethodMissingInterceptor() - Method in PipelineTestHelper
GitSource - Class in com.lesfurets.jenkins.unit.global.lib
gitSource(String) - Method in GitSource
gse - Field in PipelineTestHelper
Internal script engine

H

hashCode() - Method in MethodCall
hashCode() - Method in MethodSignature

I

init() - Method in PipelineTestHelper
init() - Method in PipelineTestHelperCPS
InterceptingGCL - Class in com.lesfurets.jenkins.unit
InterceptingGCL(PipelineTestHelper, ClassLoader, CompilerConfiguration) - Constructor in InterceptingGCL
isInitialized() - Method in PipelineTestHelper
@return true if internal GroovyScriptEngine is set
isMethodAllowed(String, def) - Method in PipelineTestHelper
@param name method name

J

K

L

libLoader - Field in PipelineTestHelper
Loader for shared global libraries
Library - Annotation Type in com.lesfurets.jenkins.unit.global.lib
Annotation definition to avoid missing import
library(String) - Method in LibraryConfiguration
LibraryAnnotationTransformer - Class in com.lesfurets.jenkins.unit.global.lib
Parses class definitions for Library annotation Shamelessly adapted from workflow.cps.lib.plugin
LibraryAnnotationTransformer(LibraryLoader) - Constructor in LibraryAnnotationTransformer
LibraryConfiguration - Class in com.lesfurets.jenkins.unit.global.lib
Mock for org.jenkinsci.plugins.workflow.libs.LibraryConfiguration
LibraryConfiguration.LibraryBuilder - Class in com.lesfurets.jenkins.unit.global.lib
LibraryLoader - Class in com.lesfurets.jenkins.unit.global.lib
Loads global shared libraries to groovy class loader
LibraryLoader.LibraryLoadingException - Class in com.lesfurets.jenkins.unit.global.lib
LibraryLoader.LibraryLoadingException(Throwable, LibraryConfiguration, String) - Constructor in LibraryLoader.LibraryLoadingException
LibraryLoader(GroovyClassLoader, Map<String, LibraryConfiguration>) - Constructor in LibraryLoader
LibraryRecord - Class in com.lesfurets.jenkins.unit.global.lib
LibraryRecord(LibraryConfiguration, String, List<String>) - Constructor in LibraryRecord
loadImplicitLibraries() - Method in LibraryLoader
Loads all implicit library configurations
loadInterceptor - Field in PipelineTestHelper
Method interceptor for method 'load' to load scripts via encapsulated GroovyScriptEngine
loadLibrary(String) - Method in LibraryLoader
Load library described by expression if it corresponds to a known library configuration
loadScript(String) - Method in BasePipelineTest
Loads without running the script by its name/path, returning the Script
loadScript(String, Binding) - Method in PipelineTestHelper
Load the script with given binding context without running, returning the Script
LocalSource - Class in com.lesfurets.jenkins.unit.global.lib
localSource(String) - Method in LocalSource

M

METHOD_CALL_COUNT - Field in RegressionTestHelper
METHOD_CALL_NOT_EXISTS - Field in RegressionTestHelper
method(String, Class) - Method in MethodSignature
MethodCall - Class in com.lesfurets.jenkins.unit
methodCallCount(String) - Method in PipelineTestHelper
Count the number of calls to the method with name
methodInterceptor - Field in PipelineTestHelper
Method interceptor for any method called in executing script.
MethodSignature - Class in com.lesfurets.jenkins.unit
MethodSignature(String, Class) - Constructor in MethodSignature
MockClosure - Class in com.lesfurets.jenkins.unit.cps
MockClosure(Object, Object, List<String>, Block, Env) - Constructor in MockClosure
MockPipelineScript - Class in com.lesfurets.jenkins.unit
MockPipelineScriptCPS - Class in com.lesfurets.jenkins.unit.cps

N

O

P

parallelInterceptor - Field in PipelineTestHelper
Method interceptor for method 'parallel'
parseClass(GroovyCodeSource, boolean) - Method in InterceptingGCL
PIPELINE_STACK_WRITE - Field in RegressionTestHelper
PipelineTestHelper - Class in com.lesfurets.jenkins.unit
PipelineTestHelper(String, String, Class, Map<String, String>, ClassLoader, String) - Constructor in PipelineTestHelper
PipelineTestHelperCPS - Class in com.lesfurets.jenkins.unit.cps
printCallStack() - Method in BasePipelineTest

Q

R

registerAllowedMethod(MethodSignature, Consumer) - Method in PipelineTestHelper
@param methodSignature
registerMethodCall(Object, int, String, Object) - Method in PipelineTestHelper
Register method call to call stack
registerSharedLibrary(LibraryConfiguration) - Method in PipelineTestHelper
Register library description See LibraryConfiguration for its description
RegressionTest - Trait in com.lesfurets.jenkins.unit
RegressionTestHelper - Class in com.lesfurets.jenkins.unit
retrieve(String, String, String) - Method in GitSource
retrieve(String, String, String) - Method in LocalSource
retrieve(String, String, String) - Method in SourceRetriever
roundtripSerialization(T) - Method in PipelineTestHelperCPS
Marshall - Unmarshall object to test serializability
runScript(Script) - Method in BasePipelineTest
Run the script object
runScript(Script) - Method in PipelineTestHelper
Run the given script object
runScriptInternal(Script) - Method in PipelineTestHelper
Run the script
runScriptInternal(Script) - Method in PipelineTestHelperCPS

S

SCRIPT_SET_BINDING - Field in PipelineTestHelper
scriptBaseClass - Field in PipelineTestHelperCPS
setGlobalVars(Binding) - Method in PipelineTestHelper
Sets global variables defined in loaded libraries on the binding
setUp() - Method in BasePipelineTest
sleep(long) - Method in MockClosure
Override sleep method
sleep(long) - Method in MockPipelineScript
Override sleep method
SourceRetriever - Interface in com.lesfurets.jenkins.unit.global.lib

T

testNonRegression(String) - Method in RegressionTest
Checks the current callstack is the same as the reference callstack.
testNonRegression(PipelineTestHelper, String) - Method in RegressionTestHelper
toSignature() - Method in MethodCall
@see #callToSignature(com.lesfurets.jenkins.unit.MethodCall)
toString() - Method in GitSource
toString() - Method in LibraryConfiguration
toString() - Method in LocalSource
toString() - Method in MethodCall
toString() - Method in MethodSignature
toStringWithClosures(Object) - Method in MethodCall
Convert argument object structure with Closures to String representation for comparison.

U

updateBuildStatus(String) - Method in BasePipelineTest
Updates the build status.

V

validate() - Method in LibraryConfiguration
value() - Method in Library
Library names, each optionally followed by @ and a version.

W

X

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _