Index

A C D E G H I J M O P R S 
All Classes and Interfaces|All Packages

A

accept(T) - Method in class space.jasan.support.groovy.closure.ConsumerWithDelegate
 
ANY(AnyExpectations, PathMatcher, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a request expectation matching any request method using the Groovy DSL.
ANY(AnyExpectations, String, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a request expectation matching any request method using the Groovy DSL.
ANY(AnyExpectations, Matcher<String>, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a request expectation matching any request method using the Groovy DSL.
apply(byte[], DecodingContext) - Method in class io.github.cjstehno.ersatz.encdec.JsonDecoder
Decodes the provided byte array into an object.
apply(Object) - Method in class io.github.cjstehno.ersatz.encdec.JsonEncoder
Converts the provided object to an array of bytes containing the JSON representation of the object.

C

chunked(Response, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows for configuration of a chunked response using a Groovy Closure, which will delegate to a ChunkingConfig instance passed into it for configuration using the Groovy DSL.
cloneWithTopLevelOwner(Closure<T>) - Static method in class space.jasan.support.groovy.closure.GroovyClosure
Clone with top level owner.
cloneWithTopLevelOwner(Closure<T>, Object) - Static method in class space.jasan.support.groovy.closure.GroovyClosure
Clone with top level owner.
cloneWithTopLevelOwner(Closure<T>, Object, int) - Static method in class space.jasan.support.groovy.closure.GroovyClosure
Clone with top level owner.
ConsumerWithDelegate<T> - Class in space.jasan.support.groovy.closure
Utility for converting closure to consumer.
cookie(Cookie, Closure) - Static method in class io.github.cjstehno.ersatz.encdec.EncDecExtensions
Used to configure a request cookie with a configuration closure.
cookieMatcher(CookieMatcher, Closure) - Static method in class io.github.cjstehno.ersatz.match.MatchExtensions
Configures the cookie matcher with a closure delegating to a CookieMatcher instance.
create(Closure) - Static method in class space.jasan.support.groovy.closure.ConsumerWithDelegate
Create a consumer from a closure.
create(Closure, int) - Static method in class space.jasan.support.groovy.closure.ConsumerWithDelegate
Create a consumer from a closure.
create(Closure, Object) - Static method in class space.jasan.support.groovy.closure.ConsumerWithDelegate
Create a consumer from a closure.
create(Closure, Object, int) - Static method in class space.jasan.support.groovy.closure.ConsumerWithDelegate
Create a consumer from a closure.

D

decoders(RequestDecoders, Closure) - Static method in class io.github.cjstehno.ersatz.encdec.EncDecExtensions
Creates a request decoder container configured by the provided closure.
DELETE(DeleteExpectations, PathMatcher, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a DELETE request expectation using the Groovy DSL.
DELETE(DeleteExpectations, String, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a DELETE request expectation using the Groovy DSL.
DELETE(DeleteExpectations, Matcher<String>, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a DELETE request expectation using the Groovy DSL.

E

EncDecExtensions - Class in io.github.cjstehno.ersatz.encdec
Groovy extensions for the encoder and decoder functionality.
EncDecExtensions() - Constructor for class io.github.cjstehno.ersatz.encdec.EncDecExtensions
 
encoders(ResponseEncoders, Closure) - Static method in class io.github.cjstehno.ersatz.encdec.EncDecExtensions
Creates a response encoder container configured by the provided closure.
expectations(Closure) - Method in class io.github.cjstehno.ersatz.GroovyErsatzServer
Used to configure HTTP expectations on the server; the provided Groovy Closure will delegate to an Expectations instance for configuring server interaction expectations using the Groovy DSL.
expectations(ServerConfig, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.ServerConfigExtensions
Used to configure HTTP expectations on the server; the provided Groovy Closure will delegate to an Expectations instance for configuring server interaction expectations using the Groovy DSL.

G

GET(GetExpectations, PathMatcher, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a GET request expectation using the Groovy DSL.
GET(GetExpectations, String, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a GET request expectation using the Groovy DSL.
GET(GetExpectations, Matcher<String>, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a GET request expectation using the Groovy DSL.
getPropagatedOwner(Object) - Static method in class space.jasan.support.groovy.closure.GroovyClosure
Returns closure's owner if the object is closure or the object self otherwise
GroovyClosure - Class in space.jasan.support.groovy.closure
Makes Java API Groovy Closure friendly.
GroovyClosure() - Constructor for class space.jasan.support.groovy.closure.GroovyClosure
 
GroovyErsatzServer - Class in io.github.cjstehno.ersatz
A Groovy extension to the core ErsatzServer library, providing a more Groovy-friendly DSL interface.
GroovyErsatzServer() - Constructor for class io.github.cjstehno.ersatz.GroovyErsatzServer
Creates a new Groovy Ersatz server with no specific configuration.
GroovyErsatzServer(Closure) - Constructor for class io.github.cjstehno.ersatz.GroovyErsatzServer
Creates a new Ersatz server instance with either the default configuration or a configuration provided by the Groovy DSL closure.
GroovyErsatzServer(ErsatzServer) - Constructor for class io.github.cjstehno.ersatz.GroovyErsatzServer
Creates a new Groovy Ersatz Server as a wrapper around the provided server instance.
GroovyErsatzServer(ServerConfigImpl) - Constructor for class io.github.cjstehno.ersatz.GroovyErsatzServer
Creates a new Groovy Ersatz server with the given server configuration.

H

HEAD(HeadExpectations, PathMatcher, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a HEAD request expectation using the Groovy DSL.
HEAD(HeadExpectations, String, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a HEAD request expectation using the Groovy DSL.
HEAD(HeadExpectations, Matcher<String>, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a HEAD request expectation using the Groovy DSL.

I

io.github.cjstehno.ersatz - package io.github.cjstehno.ersatz
 
io.github.cjstehno.ersatz.cfg - package io.github.cjstehno.ersatz.cfg
 
io.github.cjstehno.ersatz.encdec - package io.github.cjstehno.ersatz.encdec
 
io.github.cjstehno.ersatz.match - package io.github.cjstehno.ersatz.match
 

J

jsonDecoder() - Static method in class io.github.cjstehno.ersatz.encdec.JsonDecoder
A helper method to provide a new instance of a JsonDecoder.
JsonDecoder - Class in io.github.cjstehno.ersatz.encdec
Provides a Decoder for JSON content based on the Groovy JsonSlurper.
JsonDecoder() - Constructor for class io.github.cjstehno.ersatz.encdec.JsonDecoder
 
jsonEncoder() - Static method in class io.github.cjstehno.ersatz.encdec.JsonEncoder
A helper method to create an instance of the JsonEncoder.
JsonEncoder - Class in io.github.cjstehno.ersatz.encdec
An encoder based on the Groovy JsonOutput serializer.
JsonEncoder() - Constructor for class io.github.cjstehno.ersatz.encdec.JsonEncoder
 

M

MatchExtensions - Class in io.github.cjstehno.ersatz.match
Groovy extensions to the ersatz Hamcrest matchers providing Groovy DSL features.
MatchExtensions() - Constructor for class io.github.cjstehno.ersatz.match.MatchExtensions
 
multipartMatcher(MultipartRequestMatcher, Closure) - Static method in class io.github.cjstehno.ersatz.match.MatchExtensions
Creates a new multipart matcher with a Groovy DSL closure (delegating to MultipartRequestMatcher).
multipartRequest(MultipartRequestContent, Closure) - Static method in class io.github.cjstehno.ersatz.encdec.EncDecExtensions
Creates and configures a multipart request object using the Groovy DSL closure (delegated to an instance of MultipartRequestContent).
multipartResponse(MultipartResponseContent, Closure) - Static method in class io.github.cjstehno.ersatz.encdec.EncDecExtensions
Creates a new multipart response content object with the optional boundary (random default) and a Closure used to configure the parts.

O

OPTIONS(OptionsExpectations, PathMatcher, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a OPTIONS request expectation using the Groovy DSL.
OPTIONS(OptionsExpectations, String, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a OPTIONS request expectation using the Groovy DSL.
OPTIONS(OptionsExpectations, Matcher<String>, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a OPTIONS request expectation using the Groovy DSL.

P

PATCH(PatchExpectations, PathMatcher, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a PATCH request expectation using the Groovy DSL.
PATCH(PatchExpectations, String, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a PATCH request expectation using the Groovy DSL.
PATCH(PatchExpectations, Matcher<String>, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a PATCH request expectation using the Groovy DSL.
POST(PostExpectations, PathMatcher, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a POST request expectation using the Groovy DSL.
POST(PostExpectations, String, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a POST request expectation using the Groovy DSL.
POST(PostExpectations, Matcher<String>, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a POST request expectation using the Groovy DSL.
PUT(PutExpectations, PathMatcher, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a PUT request expectation using the Groovy DSL.
PUT(PutExpectations, String, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a PUT request expectation using the Groovy DSL.
PUT(PutExpectations, Matcher<String>, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows configuration of a PUT request expectation using the Groovy DSL.

R

RequestResponseExtensions - Class in io.github.cjstehno.ersatz.cfg
Groovy extensions of the RequestResponse class to provide Groovy DSL enhancements.
RequestResponseExtensions() - Constructor for class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
 
requirements(ServerConfig, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.ServerConfigExtensions
Used to configure any global request requirements using the provided Groovy Closure.
responder(Request, Closure) - Static method in class io.github.cjstehno.ersatz.cfg.RequestResponseExtensions
Allows for configuration of a Response by the given Groovy Closure, which will delegate to a Response instance passed into it for configuration using the Groovy DSL.

S

ServerConfigExtensions - Class in io.github.cjstehno.ersatz.cfg
Groovy extensions to the Ersatz server configuration providing Groovy DSL behavior.
ServerConfigExtensions() - Constructor for class io.github.cjstehno.ersatz.cfg.ServerConfigExtensions
 
setDelegate(T, Object) - Static method in class space.jasan.support.groovy.closure.GroovyClosure
Attempts to set delegate of object which might be a Closure.
space.jasan.support.groovy.closure - package space.jasan.support.groovy.closure
 
A C D E G H I J M O P R S 
All Classes and Interfaces|All Packages